1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

sort: adapt to API changes of rand

This commit is contained in:
Daniel Hofstetter 2025-01-29 14:51:20 +01:00
parent 730b404b6e
commit a5fb8f952b
2 changed files with 3 additions and 3 deletions

View file

@ -1275,7 +1275,7 @@ fn test_tmp_files_deleted_on_sigint() {
// approximately 20 MB
for _ in 0..40 {
let lines = SmallRng::seed_from_u64(123)
.sample_iter(rand::distributions::uniform::Uniform::new(0, 10000))
.sample_iter(rand::distr::uniform::Uniform::new(0, 10000).unwrap())
.take(100_000)
.map(|x| x.to_string() + "\n")
.collect::<String>();