Skip to main content

hash_string_modulo

Function hash_string_modulo 

Source
pub fn hash_string_modulo(s: &str, modulus: u64) -> u64
Expand description

Hash s into [0, modulus) via modulo. Used by tile-index bucketing where the extent isn’t necessarily a power of two.