Implementation of FNV1 digester.
FNV1 (Fowler–Noll–Vo) is a simple hash function that XORs each byte of the input data with a predefined constant and then multiplies the result by another predefined constant. The process is repeated for each byte in the data.
Computes the FNV1 hash digest of the given data.
import tern.digest.fnv1; ubyte[] data = [1, 2, 3, 4, 5]; auto hashValue = FNV1.hash(data);
See Implementation
Implementation of FNV1 digester.
FNV1 (Fowler–Noll–Vo) is a simple hash function that XORs each byte of the input data with a predefined constant and then multiplies the result by another predefined constant. The process is repeated for each byte in the data.