Skip to content

xxhash_64

xxhash_64(data, seed?): bigint

Defined in: hash/xxhash_64.ts:32

Computes the XXH64 hash of data (Yann Collet, xxHash specification v0.2.0).

The reference recommendation for 64-bit digests on 64-bit hardware, but in JavaScript it runs on bigint arithmetic and is therefore slower than xxhash32, not faster. Choose it for the wider digest, not for speed.

Complexity: O(n) in the byte length of data.

Uint8Array

The bytes to hash.

bigint = 0n

The 64-bit seed, defaulting to 0n.

bigint

An unsigned 64-bit digest.