folly::hash::SpookyHashV2

SpookyHash V2: a 128-bit noncryptographic hash function by Bob Jenkins.

Synopsis

Declared in <folly/hash/SpookyHashV2.h>

class SpookyHashV2;

Description

Version 2 is incompatible with version 1.

Member Functions

NameDescription
Final Compute the hash for the current SpookyHash state.
Init Initialize the state of a SpookyHash computation.
Update Add a fragment of a message to the SpookyHash state.

Static Member Functions

NameDescription
End Add the last 96-byte block and finalize the twelve-word state.
EndPartial Mix all twelve state words so that the first two form a hash of them all.
Hash128 Hash a single message in one call, producing 128-bit output.
Hash32 Hash a single message in one call, producing 32-bit output.
Hash64 Hash a single message in one call, returning 64-bit output.
Mix Mix the next 96-byte block into the twelve-word internal state.
Rot64 Left-rotate a 64-bit value by k bits.
ShortEnd Final mixing of the four short-message state words into a hash.
ShortMix Mixing step used by the short-message path over four state words.