Skip to content

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.

Uint8Array

The bytes to hash.

bigint = OFFSET_BASIS_

The initial state, defaulting to the canonical offset basis.

bigint

An unsigned 64-bit digest.