xor_pair

Function xor_pair 

Source
pub fn xor_pair(n: usize, seed: u64) -> (Vec<u8>, Vec<u8>, Vec<u8>)
Expand description

Generate three sequences X, Y, Z where Z = X XOR Y.

X, Y are independent uniform random bits. Information content: I(X;Z)=0, I(Y;Z)=0, but I(X,Y;Z) > 0. This forms a classic example where pairwise independence does not imply mutual independence.