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