Skip to content

Commit b56cfba

Browse files
[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 <[email protected]>
1 parent 0407ed5 commit b56cfba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/desktop/desktop_native/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ oo7 = "=0.4.3"
3737
oslog = "=0.2.0"
3838
pin-project = "=1.1.10"
3939
pkcs8 = "=0.10.2"
40-
rand = "=0.8.5"
40+
rand = "=0.9.1"
4141
rsa = "=0.9.8"
4242
russh-cryptovec = "=0.7.3"
4343
scopeguard = "=1.2.0"

apps/desktop/desktop_native/core/src/biometric/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ impl super::BiometricTrait for Biometric {
104104

105105
fn random_challenge() -> [u8; 16] {
106106
let mut challenge = [0u8; 16];
107-
rand::thread_rng().fill_bytes(&mut challenge);
107+
rand::rng().fill_bytes(&mut challenge);
108108
challenge
109109
}

apps/desktop/desktop_native/core/src/biometric/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl super::BiometricTrait for Biometric {
174174

175175
fn random_challenge() -> [u8; 16] {
176176
let mut challenge = [0u8; 16];
177-
rand::thread_rng().fill_bytes(&mut challenge);
177+
rand::rng().fill_bytes(&mut challenge);
178178
challenge
179179
}
180180

0 commit comments

Comments
 (0)