1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +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:
renovate[bot]
2025-05-08 21:04:29 +02:00
committed by GitHub
parent 0407ed5b90
commit b56cfba5bf
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ oo7 = "=0.4.3"
oslog = "=0.2.0"
pin-project = "=1.1.10"
pkcs8 = "=0.10.2"
rand = "=0.8.5"
rand = "=0.9.1"
rsa = "=0.9.8"
russh-cryptovec = "=0.7.3"
scopeguard = "=1.2.0"

View File

@@ -104,6 +104,6 @@ impl super::BiometricTrait for Biometric {
fn random_challenge() -> [u8; 16] {
let mut challenge = [0u8; 16];
rand::thread_rng().fill_bytes(&mut challenge);
rand::rng().fill_bytes(&mut challenge);
challenge
}

View File

@@ -174,7 +174,7 @@ impl super::BiometricTrait for Biometric {
fn random_challenge() -> [u8; 16] {
let mut challenge = [0u8; 16];
rand::thread_rng().fill_bytes(&mut challenge);
rand::rng().fill_bytes(&mut challenge);
challenge
}