Skip to main content

stable_key_hash

Function stable_key_hash 

Source
pub fn stable_key_hash(key: &[u8]) -> u64
Expand description

Stable, seedless 64-bit hash for shard routing (FNV-1a). Not for adversarial input — routing only. Stability across processes, versions, and platforms is a contract: changing this function reshuffles shards.