Skip to main content

item_mask

Function item_mask 

Source
fn item_mask(bytes: &[u8]) -> u128
Expand description

Bit mask for item: 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.