xxhash_32
xxhash_32(
data,seed?):number
Defined in: hash/xxhash_32.ts:28
Computes the XXH32 hash of data (Yann Collet, xxHash specification v0.2.0).
The fastest of the 32-bit hashes here on inputs of 16 bytes or more: it consumes four 4-byte lanes per stripe into independent accumulators, so the inner loop pipelines well. Below 16 bytes it degrades to a single accumulator and offers no advantage over murmur3_32.
Complexity: O(n) in the byte length of data.
Parameters
Section titled “Parameters”Uint8Array
The bytes to hash.
number = 0
The 32-bit seed, defaulting to 0.
Returns
Section titled “Returns”number
An unsigned 32-bit digest.