Skip to content

Commit 2f24c7a

Browse files
authored
chore(deps): Update rand to 0.9 (#2367)
1 parent fe23a5e commit 2f24c7a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/notification/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ serde_json = { workspace = true }
3030
tauri = { workspace = true }
3131
log = { workspace = true }
3232
thiserror = { workspace = true }
33-
rand = "0.8"
33+
rand = "0.9"
3434
time = { version = "0.3", features = ["serde", "parsing", "formatting"] }
3535
url = { version = "2", features = ["serde"] }
3636
serde_repr = "0.1"

plugins/stronghold/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ iota-crypto = "0.23"
3434
hex = "0.4"
3535
zeroize = { version = "1", features = ["zeroize_derive"] }
3636
rust-argon2 = { version = "2", optional = true }
37-
rand_chacha = { version = "0.3.1", optional = true }
38-
rand_core = { version = "0.6.4", features = ["getrandom"], optional = true }
37+
rand_chacha = { version = "0.9", optional = true }
38+
rand_core = { version = "0.9", features = ["os_rng"], optional = true }
3939

4040
[dev-dependencies]
41-
rand = "0.8"
41+
rand = "0.9"
4242
rusty-fork = "0.3"
4343

4444
[features]

plugins/stronghold/src/kdf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn create_or_get_salt(salt: &mut [u8], salt_path: &Path) {
3232
salt.clone_from_slice(&tmp);
3333
} else {
3434
// Generate new salt
35-
let mut gen = ChaCha20Rng::from_entropy();
35+
let mut gen = ChaCha20Rng::from_os_rng();
3636
gen.fill_bytes(salt);
3737
std::fs::write(salt_path, salt).expect("Failed to write salt for Stronghold")
3838
}

plugins/websocket/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tauri = { workspace = true }
3131
log = { workspace = true }
3232
thiserror = { workspace = true }
3333
http = "1"
34-
rand = "0.8"
34+
rand = "0.9"
3535
futures-util = "0.3"
3636
tokio = { version = "1", features = ["net", "sync"] }
3737
tokio-tungstenite = { version = "0.27" }

0 commit comments

Comments
 (0)