Update rand in the stdlib tests, and remove the getrandom feature from it

This commit is contained in:
Thom Chiovoloni
2022-11-20 16:55:41 -08:00
parent 659e169d37
commit a4bf36e87b
22 changed files with 508 additions and 480 deletions

View File

@@ -39,9 +39,10 @@ pub mod test {
}
}
#[track_caller] // for `test_rng`
pub fn tmpdir() -> TempDir {
let p = env::temp_dir();
let mut r = rand::thread_rng();
let mut r = crate::test_helpers::test_rng();
let ret = p.join(&format!("rust-{}", r.next_u32()));
fs::create_dir(&ret).unwrap();
TempDir(ret)