Skip to content

olahol/nimrod-murmur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

MurmurHash in pure nimrod.

Resources

License

Stars

Watchers

Forks

Packages

No packages published