kumulant

SplitMixChunkHasher

Hashes byte arrays by feeding 8-byte little-endian chunks through splitmix64 and folding tail bytes in last. The starting state is the input length, so different-length zero-prefixed inputs hash distinctly. Stable byte-for-byte across platforms; currently the default for hash64.

Functions

Link copied to clipboard
open override fun hash(bytes: ByteArray): Long

Return a 64-bit hash of bytes. Equal byte arrays must return equal hashes.

hash

open override fun hash(bytes: ByteArray): Long(source)

Return a 64-bit hash of bytes. Equal byte arrays must return equal hashes.