summaryrefslogtreecommitdiffstats
path: root/src/util/murmurhash3.h
blob: db7d8a48c4680f5aa21d29f5e4607b0c4618203c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* This file is based on the public domain MurmurHash3 from Austin Appleby:
 * http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp
 *
 * We use only the 32 bit variant because the 2 produce different result while
 * we need to produce the same result regardless of the architecture as
 * clients can be both 64 or 32 bit at the same time.
 */

#include <stdint.h>

uint32_t murmurhash3(const char *key, int len, uint32_t seed);