Crate murmurhash64 [] [src]

Implementation of MurmurHash2 (64bit version)

Based on the implementation for Redis (antirez/redis src/hyperloglog.c)

More info and different implementations available at: https://sites.google.com/site/murmurhash/

Basic Example

let key = "Pizza & Mandolino";
let seed = 2915580697;

let hash = murmur_hash64a(key.as_bytes(), seed);Run

Structs

MurmurHasher

MurmurHash2 can also be used as the hash algorithm in a HashMap (or similar). It implements the necessary traits.

MurmurState
RandomMurmurState

Functions

murmur_hash64a

Hash the given key and the given seed.