BloombergLP::bslh::SpookyHashAlgorithmImp::hash64

Return a 64-bit SpookyHash of message.

Synopsis

Declared in <bslh_spookyhashalgorithmimp.h>

static
SpookyHashAlgorithmImp::Uint64
hash64(
    void const* message,
    size_t length,
    Uint64 seed);

Description

Hash length bytes of message using seed and return a 64-bit hash.

Hash the specified length bytes of message using seed as a seed. Return the resulting 64-bit hash. The behavior is undefined unless message points at least length bytes of initialized memory or length is zero.

Return Value

64-bit hash value

Parameters

NameDescription
messagebytes to hash
lengthnumber of bytes in message
seedhash seed