Move thread_rng() outside the loop

This commit is contained in:
Stjepan Glavina 2017-06-26 11:20:31 +02:00
parent 12205f1450
commit 723833f4e1

View file

@ -141,10 +141,11 @@ fn main() {
}
}));
let mut rng = thread_rng();
for len in (1..20).chain(70..MAX_LEN) {
for &modulus in &[5, 20, 50] {
for &has_runs in &[false, true] {
let mut rng = thread_rng();
let mut input = (0..len)
.map(|id| {
DropCounter {