fnv1_64
fnv1_64(
data,seed?):bigint
Defined in: hash/fnv_64.ts:42
Computes the 64-bit FNV-1 hash of data (multiply-then-XOR order).
Superseded by fnv1a_64, 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.
bigint = OFFSET_BASIS_
The initial state, defaulting to the canonical offset basis.
Returns
Section titled “Returns”bigint
An unsigned 64-bit digest.