mirror of
https://github.com/OALabs/hashdb
synced 2026-06-08 12:05:11 +00:00
ed39b03997
the new test string is longer and more complex to cut down on false collisions
11 lines
172 B
Python
11 lines
172 B
Python
#!/usr/bin/env python
|
|
import zlib
|
|
|
|
DESCRIPTION = "Standard crc32 hash."
|
|
TYPE = 'unsigned_int'
|
|
TEST_1 = 532866770
|
|
|
|
|
|
def hash(data):
|
|
return 0xffffffff & zlib.crc32(data)
|