mirror of
https://github.com/olahol/nimrod-murmur/
synced 2026-01-01 22:37:51 +00:00
No description
| .gitignore | ||
| LICENSE | ||
| murmur.babel | ||
| murmur.nim | ||
| README.md | ||
nimrod-murmur
MurmurHash algorithm in pure nimrod.
Install
$ babel install murmur
Example
import murmur
echo(murmur.hash("digest this text", 0xbadc0ffee'i32))
# => 2419875762
Documentation
hash(key: string, seed: int32 = 0): uint32
Compute the murmur hash of key with seed seed.
Acknowledgements
This module is a port of murmurhash-js.