Created
March 29, 2011 04:33
-
-
Save zuriby/891813 to your computer and use it in GitHub Desktop.
32bit hash function for python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hash32 = lambda value: hash(value) & 0xffffffff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something to keep in mind: the result will vary between processes.