We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4516e4e commit d31570eCopy full SHA for d31570e
Cargo.toml
@@ -45,7 +45,7 @@ async-channel = "2.0.0"
45
async-net = "2.0.0"
46
blocking = "1"
47
criterion = { version = "0.4", default-features = false, features = ["cargo_bench_support"] }
48
-getrandom = "0.2.7"
+getrandom = "0.3"
49
signal-hook = "0.3"
50
tempfile = "3"
51
benches/io.rs
@@ -102,7 +102,7 @@ fn connect_and_accept(c: &mut Criterion) {
102
use std::os::unix::net::{UnixListener, UnixStream};
103
104
let mut id = [0u8; 8];
105
- getrandom::getrandom(&mut id).unwrap();
+ getrandom::fill(&mut id).unwrap();
106
let id = u64::from_ne_bytes(id);
107
108
let socket_addr = format!("/tmp/async-io-bench-{}.sock", id);
0 commit comments