hashlittle

hash a variable-length key into a 32-bit value

package pure nothrow @nogc @live
uint
hashlittle
(
scope const void* key
,
size_t length_
,
uint initval
)

Parameters

key void*

the key (the unaligned variable-length array of bytes)

length_ size_t

the length of the key, counting by bytes

initval uint

can be any 4-byte value

Return Value

Type: uint

a 32-bit value. Every bit of the key affects every bit of the return value. Two keys differing by one or two bits will have totally different hash values.

Meta