We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019da22 commit 70d6ac9Copy full SHA for 70d6ac9
tests/by-util/test_sort.rs
@@ -1263,6 +1263,7 @@ fn test_tmp_files_deleted_on_sigint() {
1263
use std::{fs::read_dir, time::Duration};
1264
1265
use nix::{sys::signal, unistd::Pid};
1266
+ use rand::rngs::SmallRng;
1267
1268
let (at, mut ucmd) = at_and_ucmd!();
1269
at.mkdir("tmp_dir");
@@ -1273,7 +1274,7 @@ fn test_tmp_files_deleted_on_sigint() {
1273
1274
let mut file = at.make_file(file_name);
1275
// approximately 20 MB
1276
for _ in 0..40 {
- let lines = rand_pcg::Pcg32::seed_from_u64(123)
1277
+ let lines = SmallRng::seed_from_u64(123)
1278
.sample_iter(rand::distributions::uniform::Uniform::new(0, 10000))
1279
.take(100_000)
1280
.map(|x| x.to_string() + "\n")
0 commit comments