]>
Commit | Line | Data |
---|---|---|
f52207a4 GS |
1 | #ifndef BLOOM_H |
2 | #define BLOOM_H | |
3 | ||
4 | /* | |
5 | * Calculate the murmur3 32-bit hash value for the given data | |
6 | * using the given seed. | |
7 | * Produces a uniformly distributed hash value. | |
8 | * Not considered to be cryptographically secure. | |
9 | * Implemented as described in https://en.wikipedia.org/wiki/MurmurHash#Algorithm | |
10 | */ | |
11 | uint32_t murmur3_seeded(uint32_t seed, const char *data, size_t len); | |
12 | ||
13 | #endif |