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:
parent
730b404b6e
commit
a5fb8f952b
2 changed files with 3 additions and 3 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue