From de6ba8103d9e3399a2e87b38033b18b2aa32f7d3 Mon Sep 17 00:00:00 2001 From: Spacebot Date: Tue, 26 May 2026 13:30:58 +0000 Subject: [PATCH 1/2] Update Rust crate rand to 0.10 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b32603c..c832a7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ aes = "0.9" ctr = "0.10" hmac = "0.12" md-5 = "0.11" -rand = "0.8" +rand = "0.10" anyhow = "1.0" base64 = "0.22" reqwest = { version = "0.13", features = ["json"] } From 02054991b0a1931da1df8fe833011e10e0b8fad6 Mon Sep 17 00:00:00 2001 From: BloxerHD018 Date: Tue, 26 May 2026 14:41:08 +0100 Subject: [PATCH 2/2] Fix Changes in rand 0.10 --- src/crypto/wiiu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/wiiu.rs b/src/crypto/wiiu.rs index 242ca6e..78899ed 100644 --- a/src/crypto/wiiu.rs +++ b/src/crypto/wiiu.rs @@ -3,7 +3,7 @@ use ctr::cipher::{KeyIvInit, StreamCipher}; use hmac::{Hmac, Mac}; use sha2::Sha256; use md5::{Md5, Digest}; -use rand::RngCore; +use rand::Rng; use anyhow::{Result, bail}; type HmacSha256 = Hmac; @@ -84,7 +84,7 @@ pub fn encrypt_wiiu(content: &[u8], aes_key: &[u8], hmac_key: &[u8]) -> Result