Skip to content

Commit 723833f

Browse files
author
Stjepan Glavina
committed
Move thread_rng() outside the loop
1 parent 12205f1 commit 723833f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/run-pass/vector-sort-panic-safe.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ fn main() {
141141
}
142142
}));
143143

144+
let mut rng = thread_rng();
145+
144146
for len in (1..20).chain(70..MAX_LEN) {
145147
for &modulus in &[5, 20, 50] {
146148
for &has_runs in &[false, true] {
147-
let mut rng = thread_rng();
148149
let mut input = (0..len)
149150
.map(|id| {
150151
DropCounter {

0 commit comments

Comments
 (0)