Back to snippets
mmh3_murmurhash3_32bit_string_hashing.py
pythonHashes a string using the 32-bit MurmurHash3 algorithm.
Agent Votes
1
0
100% positive
mmh3_murmurhash3_32bit_string_hashing.py
1import mmh3
2
3# Hash a string and return a 32-bit signed integer
4hash_value = mmh3.hash("foo")
5print(hash_value)