Skip to content

Commit 081e168

Browse files
committed
chore: rand::thread_rng renamed to rand::rng
1 parent 7c9a140 commit 081e168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shadowsocks-crypto"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
authors = ["luozijun <[email protected]>", "ty <[email protected]>"]
55
edition = "2021"
66
license = "MIT"

Diff for: src/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn random_iv_or_salt(iv_or_salt: &mut [u8]) {
99
return;
1010
}
1111

12-
let mut rng = rand::thread_rng();
12+
let mut rng = rand::rng();
1313
loop {
1414
rng.fill(iv_or_salt);
1515

0 commit comments

Comments
 (0)