summaryrefslogtreecommitdiffstats
path: root/src/util/murmurhash3.h
blob: 9174554b929e10f2deb5bac76cffc1d56b947d4c (plain)
1
2
3
4
5
6
7
8
9
10
/* 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.
 */

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