Packages

Hash strings using the non-cryptographic hash Murmur3 in Gleam

Current section

Files

Jump to
mumu src mumu.erl
Raw

src/mumu.erl

-module(mumu).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([hash_with_seed/2, hash/1]).
-spec hash_with_seed(binary(), integer()) -> integer().
hash_with_seed(Input, Seed) ->
'Elixir.Murmur':hash_x86_32(Input, Seed).
-spec hash(binary()) -> integer().
hash(Input) ->
'Elixir.Murmur':hash_x86_32(Input, 0).