mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
mktemp: adapt to API change of rand
This commit is contained in:
parent
ddb027231f
commit
7cff766bdc
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ fn dry_exec(tmpdir: &Path, prefix: &str, rand: usize, suffix: &str) -> UResult<P
|
|||
|
||||
// Randomize.
|
||||
let bytes = &mut buf[prefix.len()..prefix.len() + rand];
|
||||
rand::thread_rng().fill(bytes);
|
||||
rand::rng().fill(bytes);
|
||||
for byte in bytes {
|
||||
*byte = match *byte % 62 {
|
||||
v @ 0..=9 => v + b'0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue