Skip to main content

bit_indices

Function bit_indices 

Source
fn bit_indices(bytes: &[u8]) -> (u32, u32)
Expand description

Pick two bit positions in 0..128 from siphash-1-3(item). The two halves of the 64-bit output give the two bloom hashes. Fixed zero keys: the bloom is a public, deterministic identifier every peer must compute the same way - this is not a hash table where seed randomization helps.