Skip to content

Commit a98a00c

Browse files
authored
Update rand to 0.9 in cap-tempfile. (#404)
1 parent 1e145e5 commit a98a00c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cap-tempfile/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ uuid = { version = "1.0.0", features = ["v4"] }
1818
camino = { version = "1.0.5", optional = true }
1919

2020
[target.'cfg(target_os = "emscripten")'.dependencies]
21-
rand = "0.8.1"
21+
rand = "0.9.2"
2222

2323
[target.'cfg(not(windows))'.dependencies]
2424
rustix = { version = "1.0.0" }

cap-tempfile/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl TempDir {
131131
#[cfg(target_os = "emscripten")]
132132
{
133133
use rand::RngCore;
134-
let mut r = rand::thread_rng();
134+
let mut r = rand::rng();
135135
format!("cap-primitives.{}", r.next_u32())
136136
}
137137
}

0 commit comments

Comments
 (0)