Files
OALabs-hashdb/algorithms/crc32.py
T
herrcore ed39b03997 updated TEST_1 test string
the new test string is longer and more complex to cut down on false collisions
2021-10-06 15:26:11 -04:00

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)