Skip to main content

stable_hash

Function stable_hash 

Source
pub fn stable_hash(bytes: &[u8]) -> u64
Expand description

Computes a stable hash of the given bytes.

Unlike hash_one, this function produces the same hash for the same input across different runs of the program. Use this for persistent hashing (e.g., in WAL entries).