1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +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

@@ -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
}