blob: 6910e596be10c9adef90177559ad3e6efe9f18de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* 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.
*/
#ifndef _UTIL_MURMURHASH3_H_
#define _UTIL_MURMURHASH3_H_
#include <stdint.h>
/* CAUTION:
* This file is also used in sss_client (pam, nss). Therefore it have to be
* minimalist and cannot include DEBUG macros or header file util.h.
*/
uint32_t murmurhash3(const char *key, int len, uint32_t seed);
#endif /* _UTIL_MURMURHASH3_H_ */
|