Hi Petri, Thanks for the feedback. Yes, trying "123456789" I'm able to check the result 0xcbf43926, but the result of crc32 on ODP is a decimal and seems to be a positive number, always, am I wrong?
Best, Daniel On Mon, Aug 20, 2018 at 4:42 AM Savolainen, Petri (Nokia - FI/Espoo) < [email protected]> wrote: > Hi, > > Did you give 0xffffffff as the init value for zlib call? CRC32 algorithm > is defined with that as the init value. Also, you can check correct > operation by trying to hash "123456789" (the common check string), which > should result 0xcbf43926 as output for CRC32. > > See e.g. > http://reveng.sourceforge.net/crc-catalogue/17plus.htm#crc.cat-bits.32 > > -Petri > > > -----Original Message----- > > From: lng-odp [mailto:[email protected]] On Behalf Of > Daniel > > Feferman > > Sent: Friday, August 17, 2018 7:18 PM > > To: [email protected] > > Subject: [lng-odp] odp_hash_crc32() vs python zlib crc32 > > > > Hi all, > > > > I'm comparing odp crc32 function vs python zlib > > <https://docs.python.org/3/library/zlib.html#zlib.crc32> library output > and > > they are not matching. Was this behavior expected? Can someone give me a > > hint about this? > > > > Best, > > Daniel >
