diff --git a/Cargo.lock b/Cargo.lock index eb2e34a..e50bc7b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -351,6 +351,17 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "chacha20" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "rand_core 0.10.1", +] + [[package]] name = "chrono" version = "0.4.45" @@ -1244,6 +1255,7 @@ dependencies = [ "cfg-if", "libc", "r-efi 6.0.0", + "rand_core 0.10.1", "wasip2", "wasip3", ] @@ -3129,6 +3141,17 @@ dependencies = [ "rand_core 0.9.5", ] +[[package]] +name = "rand" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207" +dependencies = [ + "chacha20", + "getrandom 0.4.2", + "rand_core 0.10.1", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -3167,6 +3190,12 @@ dependencies = [ "getrandom 0.3.4", ] +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + [[package]] name = "rand_distr" version = "0.5.1" @@ -3388,7 +3417,7 @@ dependencies = [ "librespot-metadata", "librespot-playback", "nucleo-matcher", - "rand 0.9.4", + "rand 0.10.1", "ratatui", "reqwest", "rodio 0.22.2", diff --git a/Cargo.toml b/Cargo.toml index f902d3f..93711fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ serde_json = "1" chrono = "0.4" sha2 = "0.11" tar = "0.4" -rand = { version = "0.9", default-features = false, features = ["std", "std_rng"] } +rand = { version = "0.10", default-features = false, features = ["std", "std_rng", "thread_rng"] } base64 = "0.21" dunce = "1" zip = { version = "2", default-features = false, features = ["deflate"] } diff --git a/src/integrations/spotify/oauth.rs b/src/integrations/spotify/oauth.rs index 4971cfd..6df31ab 100644 --- a/src/integrations/spotify/oauth.rs +++ b/src/integrations/spotify/oauth.rs @@ -1,5 +1,5 @@ use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine}; -use rand::RngCore; +use rand::Rng; use sha2::{Digest, Sha256}; use tokio::{ io::{AsyncReadExt, AsyncWriteExt},