Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ procfs = { version = "0.17", default-features = false }
[target.'cfg(unix)'.dev-dependencies]
nix = { workspace = true, features = ["process", "signal", "user", "term"] }
rlimit = "0.10.1"
rand_pcg = "0.3.1"
xattr = { workspace = true }

# Specifically used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record
Expand Down
3 changes: 2 additions & 1 deletion tests/by-util/test_sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ fn test_tmp_files_deleted_on_sigint() {
use std::{fs::read_dir, time::Duration};

use nix::{sys::signal, unistd::Pid};
use rand::rngs::SmallRng;

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