Skip to main content

bloom_hash_pair

Function bloom_hash_pair 

Source
pub fn bloom_hash_pair(a: u8, b: u8) -> (u64, u64)
Expand description

Returns the two hash functions used for double-hashed bloom filter probes.

The first element is the flashsieve-compatible FNV-1a hash and the second is the SplitMix64-derived hash.

ยงExamples

let (first, second) = hashkit::bloom_hash_pair(b'x', b'y');

assert_ne!(first, 0);
assert_ne!(second, 0);