Skip to main content

Module hash

Module hash 

Source
Expand description

Deterministic hashing (FNV-1a 64).

Katra3D uses fingerprints everywhere — file identity, access patterns, cache keys, semantic graph identity. Fingerprints must be stable across runs, machines, and architectures, so we implement FNV-1a directly instead of relying on randomized or platform-dependent hashers.

FNV-1a is not a cryptographic hash. It is deliberately simple, auditable, and deterministic (KatraFlow §10: “simple, auditable techniques”).

Functions§

fnv1a
FNV-1a 64-bit over raw bytes. const so schema hashes can be computed at compile time.
fnv1a_combine
Combine two hashes (for rolling fingerprints).
fnv1a_parts
FNV-1a over a sequence of 64-bit parts (each part folded in little-endian).
fnv1a_str
FNV-1a over a string.