Skip to content

Commit 70d6ac9

Browse files
committed
sort: use SmallRng instead of Pcg32 in test
1 parent 019da22 commit 70d6ac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/by-util/test_sort.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,7 @@ fn test_tmp_files_deleted_on_sigint() {
12631263
use std::{fs::read_dir, time::Duration};
12641264

12651265
use nix::{sys::signal, unistd::Pid};
1266+
use rand::rngs::SmallRng;
12661267

12671268
let (at, mut ucmd) = at_and_ucmd!();
12681269
at.mkdir("tmp_dir");
@@ -1273,7 +1274,7 @@ fn test_tmp_files_deleted_on_sigint() {
12731274
let mut file = at.make_file(file_name);
12741275
// approximately 20 MB
12751276
for _ in 0..40 {
1276-
let lines = rand_pcg::Pcg32::seed_from_u64(123)
1277+
let lines = SmallRng::seed_from_u64(123)
12771278
.sample_iter(rand::distributions::uniform::Uniform::new(0, 10000))
12781279
.take(100_000)
12791280
.map(|x| x.to_string() + "\n")

0 commit comments

Comments
 (0)