Skip to content

Commit

Permalink
Move thread_rng() outside the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina committed Jun 26, 2017
1 parent 12205f1 commit 723833f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/run-pass/vector-sort-panic-safe.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 723833f

Please sign in to comment.