Function KLPhash::hash_one [] [src]

pub fn hash_one(datum: &str, max: u32) -> u32

a good hashing function is well-distributed & deterministic to achieve those qualities, there can't be too many destructive operations (we want to avoid situations that trend to a certain range of values) and must reduce (fold) to take advantage of a string's uniqueness