By the book pure crystal implementation of the 32 bit variant of MurmurHash3
-
Add the dependency to your
shard.yml
:dependencies: murmur3cr32b: github: globoplox/murmur3cr32b
-
Run
shards install
require "murmur3cr32b"
hash : UInt32 = MurmurHash3.hash_32b "text to hash".bytes, seed: Random::DEFAULT.next_u
- globoplox - creator and maintainer