Skip to content

Commit 81913c4

Browse files
build(deps): Update rand requirement from 0.8.3 to 0.9.0 (#198)
* build(deps): Update rand requirement from 0.8.3 to 0.9.0 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](rust-random/rand@0.8.3...0.9.0) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix: `rand::thread_rng` has been renamed to `rng` --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Elena Frank <[email protected]>
1 parent 3f9e8c3 commit 81913c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

yamux/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ futures = { version = "0.3.12", default-features = false, features = ["std", "ex
1414
log = "0.4.8"
1515
nohash-hasher = "0.2"
1616
parking_lot = "0.12"
17-
rand = "0.8.3"
17+
rand = "0.9.0"
1818
static_assertions = "1"
1919
pin-project = "1.1.0"
2020
web-time = "1.1.0"

yamux/src/frame/io.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ mod tests {
340340
let body = if header.tag() == header::Tag::Data {
341341
header.set_len(header.len().val() % 4096);
342342
let mut b = vec![0; header.len().val() as usize];
343-
rand::thread_rng().fill_bytes(&mut b);
343+
rand::rng().fill_bytes(&mut b);
344344
b
345345
} else {
346346
Vec::new()

0 commit comments

Comments
 (0)