Skip to content

murmur3_32

murmur3_32(data, seed?): number

Defined in: hash/murmur3_32.ts:26

Computes the MurmurHash3 x86 32-bit hash of data (Austin Appleby, 2011).

A good general-purpose hash-table hash: proper finalization mix, so every output bit is usable. Slower than xxhash32 on long inputs, comparable on short ones. Not resistant to hash-flooding — use SipHash for adversarial input.

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

Uint8Array

The bytes to hash.

number = 0

The 32-bit seed, defaulting to 0.

number

An unsigned 32-bit digest.