Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Aug 9, 2024
1 parent 9a6f8e1 commit 36056f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ The program will now terminate.

let list: Vec<&str> = if failures.len() > 50 {
// Random report 50 failures
failures.choose_multiple(&mut SmallRng::from_entropy(), 50).map(|s| s.as_ref()).collect()
let mut rng = SmallRng::from_entropy();
failures.choose_multiple(&mut rng, 50).map(|s| s.as_ref()).collect()
} else {
failures.iter().map(|s| s.as_ref()).collect()
};
Expand Down

0 comments on commit 36056f6

Please sign in to comment.