Skip to main content

Module hash

Module hash 

Source
Expand description

Stable deterministic hashing utilities.

Functionsยง

derive_epoch_seed
Derive a per-epoch seed by mixing an epoch counter (or constant offset) into a base seed.
stable_hash_path
Return a deterministic u64 hash of the string form of path mixed with seed.
stable_hash_str
Return a deterministic u64 hash of value mixed with seed.
stable_hash_with
Run f against a fresh SipHasher and return the resulting digest.