Skip to content

Commit 3693c01

Browse files
build: upgrade getrandom to v0.3.0 (#320)
1 parent a4596e5 commit 3693c01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fastrand = "2.1.1"
2323
once_cell = { version = "1.19.0", default-features = false, features = ["std"] }
2424

2525
[target.'cfg(any(unix, windows, target_os = "wasi"))'.dependencies]
26-
getrandom = { version = "0.2.15", default-features = false, optional = true }
26+
getrandom = { version = "0.3.0", default-features = false, optional = true }
2727

2828
[target.'cfg(any(unix, target_os = "wasi"))'.dependencies]
2929
rustix = { version = "0.38.39", features = ["fs"] }

src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn create_helper<R>(
4747
))]
4848
if i == 3 {
4949
let mut seed = [0u8; 8];
50-
if getrandom::getrandom(&mut seed).is_ok() {
50+
if getrandom::fill(&mut seed).is_ok() {
5151
fastrand::seed(u64::from_ne_bytes(seed));
5252
}
5353
}

0 commit comments

Comments
 (0)