mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
[deps] Platform: Update Rust crate rand to v0.9.1 (#13434)
* [deps] Platform: Update Rust crate rand to v0.9.1 * remedy new lint errors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: addisonbeck <github@addisonbeck.com>
This commit is contained in:
@@ -37,7 +37,7 @@ oo7 = "=0.4.3"
|
|||||||
oslog = "=0.2.0"
|
oslog = "=0.2.0"
|
||||||
pin-project = "=1.1.10"
|
pin-project = "=1.1.10"
|
||||||
pkcs8 = "=0.10.2"
|
pkcs8 = "=0.10.2"
|
||||||
rand = "=0.8.5"
|
rand = "=0.9.1"
|
||||||
rsa = "=0.9.8"
|
rsa = "=0.9.8"
|
||||||
russh-cryptovec = "=0.7.3"
|
russh-cryptovec = "=0.7.3"
|
||||||
scopeguard = "=1.2.0"
|
scopeguard = "=1.2.0"
|
||||||
|
|||||||
@@ -104,6 +104,6 @@ impl super::BiometricTrait for Biometric {
|
|||||||
|
|
||||||
fn random_challenge() -> [u8; 16] {
|
fn random_challenge() -> [u8; 16] {
|
||||||
let mut challenge = [0u8; 16];
|
let mut challenge = [0u8; 16];
|
||||||
rand::thread_rng().fill_bytes(&mut challenge);
|
rand::rng().fill_bytes(&mut challenge);
|
||||||
challenge
|
challenge
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ impl super::BiometricTrait for Biometric {
|
|||||||
|
|
||||||
fn random_challenge() -> [u8; 16] {
|
fn random_challenge() -> [u8; 16] {
|
||||||
let mut challenge = [0u8; 16];
|
let mut challenge = [0u8; 16];
|
||||||
rand::thread_rng().fill_bytes(&mut challenge);
|
rand::rng().fill_bytes(&mut challenge);
|
||||||
challenge
|
challenge
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user