fnv1_32
fnv1_32(
data,seed?):number
Defined in: hash/fnv_32.ts:42
Computes the 32-bit FNV-1 hash of data (multiply-then-XOR order).
Superseded by fnv1a_32, which has strictly better dispersion. Provided for interoperability with systems that specify FNV-1.
Complexity: O(n) in the byte length of data.
Parameters
Section titled “Parameters”Uint8Array
The bytes to hash.
number = OFFSET_BASIS_
The initial state, defaulting to the canonical offset basis.
Returns
Section titled “Returns”number
An unsigned 32-bit digest.