No description
Find a file
2013-10-30 13:27:25 +01:00
.gitignore version 0.1.0 2013-10-30 12:55:36 +01:00
LICENSE add MIT license 2013-10-30 13:27:25 +01:00
murmur.babel version 0.1.0 2013-10-30 12:55:36 +01:00
murmur.nim version 0.1.0 2013-10-30 12:55:36 +01:00
README.md version 0.1.0 2013-10-30 12:55:36 +01:00

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.