Bump rust deps

This commit is contained in:
Andras Schmelczer 2025-04-04 21:58:05 +01:00
parent 0e53631cc8
commit 3881f56b45
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
6 changed files with 81 additions and 36 deletions

View file

@ -1,4 +1,4 @@
use rand::{Rng as _, distributions::Alphanumeric, thread_rng};
use rand::{Rng, distr::Alphanumeric, rng};
use serde::{Deserialize, Serialize};
use crate::app_state::database::models::VaultId;
@ -53,7 +53,7 @@ fn default_users() -> Vec<User> {
}
pub fn get_random_token() -> String {
thread_rng()
rng()
.sample_iter(&Alphanumeric)
.take(64)
.map(char::from)