1 2 3 4 5 6 7 8
pub(crate) fn stable_hash(bytes: &[u8]) -> u64 { let mut hash = 0xcbf29ce484222325_u64; for byte in bytes { hash ^= u64::from(*byte); hash = hash.wrapping_mul(0x100000001b3); } hash }