Skip to content

Commit

Permalink
chore(deps): update rust crate getrandom to 0.3 (#1467)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <[email protected]>
  • Loading branch information
renovate[bot] and FabianLars authored Jan 27, 2025
1 parent 9ff1b66 commit f944870
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
32 changes: 31 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pollster = "0.4.0"
tao = "0.31"
wgpu = "23"
winit = "0.30"
getrandom = "0.2"
getrandom = "0.3"
http-range = "0.1"
percent-encoding = "2.3"

Expand Down
2 changes: 1 addition & 1 deletion examples/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ fn stream_protocol(

fn random_boundary() -> String {
let mut x = [0_u8; 30];
getrandom::getrandom(&mut x).expect("failed to get random bytes");
getrandom::fill(&mut x).expect("failed to get random bytes");
(x[..])
.iter()
.map(|&x| format!("{x:x}"))
Expand Down

0 comments on commit f944870

Please sign in to comment.