Skip to content

Commit

Permalink
crc
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyubin2020 committed Aug 23, 2016
1 parent b54ef56 commit 276a9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oss2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ def get_crc(self):

class Crc64(object):

_POLY = 0x142F0E1EBA9EA3693L
_XOROUT = 0XFFFFFFFFFFFFFFFFL
_POLY = 0x142F0E1EBA9EA3693
_XOROUT = 0XFFFFFFFFFFFFFFFF

def __init__(self, init_crc=0):
self.crc64 = crcmod.Crc(self._POLY, initCrc=init_crc, rev=True, xorOut=self._XOROUT)
Expand Down

0 comments on commit 276a9f6

Please sign in to comment.