Skip to content

Instantly share code, notes, and snippets.

@tzuryby
Created March 29, 2011 04:33
Show Gist options
  • Save tzuryby/891813 to your computer and use it in GitHub Desktop.
Save tzuryby/891813 to your computer and use it in GitHub Desktop.
32bit hash function for python
hash32 = lambda value: hash(value) & 0xffffffff
@bm371613
Copy link

Something to keep in mind: the result will vary between processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment