diff options
Diffstat (limited to 'src/util/murmurhash3.h')
-rw-r--r-- | src/util/murmurhash3.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/murmurhash3.h b/src/util/murmurhash3.h new file mode 100644 index 00000000..9174554b --- /dev/null +++ b/src/util/murmurhash3.h @@ -0,0 +1,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); + |