data-structures-c
|
Murmur3 hash hashing function. More...
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
static uint32_t | murmur3_32 (const uint8_t *key_ptr, const uint32_t len, const uint32_t seed) |
Get the Murmur3 (32-bit) hash of a string of bytes. | |
Murmur3 hash hashing function.
Original Source: http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp
Source used: https://en.wikipedia.org/wiki/MurmurHash#Algorithm
MurmurHash3 was written by Austin Appleby, and is placed in the public domain.
|
inlinestatic |
Get the Murmur3 (32-bit) hash of a string of bytes.
[in] | key_ptr | Pointer to the string of bytes. |
[in] | len | Number of bytes. |
[in] | seed | A seed, for whom matched with a given key, makes the hash function produce the same hash for the key. |
uint32_t
-sized hash of the bytes.