Skip to content

fnv1a_64

fnv1a_64(data, seed?): bigint

Defined in: hash/fnv_64.ts:19

Computes the 64-bit FNV-1a hash of data.

Uses bigint arithmetic, so it is markedly slower than fnv1a32 — use it when a 64-bit fingerprint is required, not as a general-purpose bucketing hash.

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.