Crate jumpconsistenthash

Source
Expand description

implements Google’s Jump Consistent Hash From the paper “A Fast, Minimal Memory, Consistent Hash Algorithm” by John Lamping, Eric Veach (2014). Paper

Functions§

jump_hash_from_str
hashes an &str to a u32 which is in the range of 0..buckets
jump_hash_from_u64
hashes a u64 to a u32 which is in the range of 0..buckets