Skip to main content

content_hash_bytes

Function content_hash_bytes 

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

FNV-1a hash of raw bytes: what both a line’s text and a whole document go through, so one implementation pins both.

Deterministic across runs (unlike DefaultHasher), which matters because the value is persisted in an anchor and compared after restarts.