Move thread_rng() outside the loop
This commit is contained in:
parent
12205f1450
commit
723833f4e1
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue