Skip to content

Commit

Permalink
Update getrandom requirement from 0.2.7 to 0.3 (#215)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dependabot[bot] and taiki-e authored Jan 28, 2025
1 parent 4516e4e commit d31570e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion benches/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d31570e

Please sign in to comment.