Skip to content

Commit d31570e

Browse files
Update getrandom requirement from 0.2.7 to 0.3 (#215)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taiki Endo <[email protected]>
1 parent 4516e4e commit d31570e

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
@@ -45,7 +45,7 @@ async-channel = "2.0.0"
4545
async-net = "2.0.0"
4646
blocking = "1"
4747
criterion = { version = "0.4", default-features = false, features = ["cargo_bench_support"] }
48-
getrandom = "0.2.7"
48+
getrandom = "0.3"
4949
signal-hook = "0.3"
5050
tempfile = "3"
5151

benches/io.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn connect_and_accept(c: &mut Criterion) {
102102
use std::os::unix::net::{UnixListener, UnixStream};
103103

104104
let mut id = [0u8; 8];
105-
getrandom::getrandom(&mut id).unwrap();
105+
getrandom::fill(&mut id).unwrap();
106106
let id = u64::from_ne_bytes(id);
107107

108108
let socket_addr = format!("/tmp/async-io-bench-{}.sock", id);

0 commit comments

Comments
 (0)