mumu

Package Version Hex Docs

Hash strings using the non-cryptographic hash Murmur3 in Gleam.

gleam add mumu
import mumu

mumu.hash("some-data")
// -> 875_689_107

mumu.hash_with_seed("some-data", 1)
// -> 3_388_568_194

Further documentation can be found at https://hexdocs.pm/mumu.

For erlang targets, you should have elixir installed as this package relies on an external function internally for performance reasons. This might change in later versions when we provide a gleam-only version of the algorithm.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell
Search Document