pub fn consistent_hash(key: &str, buckets: u32) -> u32
Consistent hashing to bucket index [0, buckets)