diff --git a/src/random.rs b/src/random.rs index 6b15182d..b433ac2a 100644 --- a/src/random.rs +++ b/src/random.rs @@ -109,4 +109,20 @@ mod tests { set.insert(rand); } } + + // I used this to perform statistical tests of the random generation function using ENT + // (https://fourmilab.ch/random/). + //#[test] + //fn write_to_file() { + //use std::io::Write; + //let mut f = std::fs::OpenOptions::new() + //.write(true) + //.create(true) + //.append(true) + //.open("random_out") + //.unwrap(); + //for _ in 0..10_000_000 { + //f.write(&random_bytes().unwrap()).unwrap(); + //} + //} }