diff --git a/Cargo.toml b/Cargo.toml index 25ec5ba..9ff68c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ async-channel = "2.0.0" async-net = "2.0.0" blocking = "1" criterion = { version = "0.4", default-features = false, features = ["cargo_bench_support"] } -getrandom = "0.2.7" +getrandom = "0.3" signal-hook = "0.3" tempfile = "3" diff --git a/benches/io.rs b/benches/io.rs index 3ad16fc..a0a1a65 100644 --- a/benches/io.rs +++ b/benches/io.rs @@ -102,7 +102,7 @@ fn connect_and_accept(c: &mut Criterion) { use std::os::unix::net::{UnixListener, UnixStream}; let mut id = [0u8; 8]; - getrandom::getrandom(&mut id).unwrap(); + getrandom::fill(&mut id).unwrap(); let id = u64::from_ne_bytes(id); let socket_addr = format!("/tmp/async-io-bench-{}.sock", id);