Function rotating_hash

Source
pub fn rotating_hash(key: &str, prime: i64) -> i64