diff --git a/Cargo.lock b/Cargo.lock index f366ad9..9f32fe7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -315,6 +315,17 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "rand_core 0.10.1", +] + [[package]] name = "cipher" version = "0.5.2" @@ -381,7 +392,7 @@ dependencies = [ "hostname", "md-5", "pbkdf2", - "rand 0.9.3", + "rand 0.10.3", "ratatui", "reqwest", "rubato", @@ -2314,6 +2325,17 @@ dependencies = [ "rand_core 0.9.5", ] +[[package]] +name = "rand" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +dependencies = [ + "chacha20", + "getrandom 0.4.2", + "rand_core 0.10.1", +] + [[package]] name = "rand_chacha" version = "0.9.0" diff --git a/Cargo.toml b/Cargo.toml index 0a1050e..340b38b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ hex = "0.4.3" base64 = "0.23.1" # Misc -rand = "0.9" +rand = "0.10.3" dirs = "5.0.1" clap = { version = "4.6.7", features = ["derive"] } anyhow = "1.0.104" diff --git a/src/queue/mod.rs b/src/queue/mod.rs index 875836a..875db53 100644 --- a/src/queue/mod.rs +++ b/src/queue/mod.rs @@ -1,4 +1,4 @@ -use rand::Rng; +use rand::RngExt; use rand::seq::SliceRandom; use serde::{Deserialize, Serialize}; diff --git a/src/subsonic/auth.rs b/src/subsonic/auth.rs index a0f0d02..0a6d59d 100644 --- a/src/subsonic/auth.rs +++ b/src/subsonic/auth.rs @@ -1,5 +1,5 @@ use md5::{Digest, Md5}; -use rand::Rng; +use rand::RngExt; use std::collections::HashMap; pub const API_VERSION: &str = "1.16.1";