Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bloom.h - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d0fcc5f0aa6ad12e0b6eada2b7d39a4a8d5840b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef BLOOM_H
#define BLOOM_H

/*
 * Calculate the murmur3 32-bit hash value for the given data
 * using the given seed.
 * Produces a uniformly distributed hash value.
 * Not considered to be cryptographically secure.
 * Implemented as described in https://en.wikipedia.org/wiki/MurmurHash#Algorithm
 */
uint32_t murmur3_seeded(uint32_t seed, const char *data, size_t len);

#endif