SpookyHash V2: a 128-bit noncryptographic hash function by Bob Jenkins.
Declared in <folly/hash/SpookyHashV2.h>
class SpookyHashV2;
Version 2 is incompatible with version 1.
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
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. |