Module hash

Module hash 

Source
Expand description

Hash homes: FNV-1a for stable, platform-independent fingerprints and one xxh3-128 content key for in-memory dedup grouping.

FNV-1a here is the textbook byte-wise algorithm, so values are comparable with every other FNV-1a implementation (and the JS twin for the 32-bit variant). Fnv1a64::mix_word is a different, word-wise step used by the geometry kernel topology manifests; it is NOT byte-wise FNV and is kept separate so those pinned values never move.

Structs§

ContentHash
xxh3-128 content key. The digest gates key EQUALITY for dedup grouping and must never be persisted or written into an output: the algorithm may change.
Fnv1a64
Streaming 64-bit FNV-1a.

Constants§

FNV64_OFFSET
FNV-1a 64-bit offset basis (the state of an empty hash).

Functions§

fnv1a32
32-bit FNV-1a over bytes (the JS-twin source fingerprint).
fnv1a64
64-bit FNV-1a over bytes.
fnv1a64_extend
Continue a 64-bit FNV-1a state (start from FNV64_OFFSET) over bytes, for callers that carry the raw u64 state.