Module fasthash::mum [] [src]

MumHash, Hashing functions and PRNGs based on them

by Vladimir Makarov vmakarov@gcc.gnu.org

https://github.com/vnmakarov/mum-hash

Example

use std::hash::{Hash, Hasher};

use fasthash::{mum, MumHasher};

fn hash<T: Hash>(t: &T) -> u64 {
    let mut s: MumHasher = Default::default();
    t.hash(&mut s);
    s.finish()
}

let h = mum::hash64(b"hello world\xff");

assert_eq!(h, hash(&"hello world"));

Structs

MumHash

FarmHash 64-bit hash functions

MumHasher

An implementation of std::hash::Hasher.

Functions

hash64

MumHash 64-bit hash functions for a byte array.

hash64_with_seed

MumHash 64-bit hash function for a byte array. For convenience, a 64-bit seed is also hashed into the result.