Update rand to 0.9

This commit is contained in:
Lennart
2025-06-08 19:56:48 +02:00
parent c05c330601
commit 1d25d6cc70
7 changed files with 11 additions and 16 deletions

View File

@@ -10,13 +10,13 @@ use axum::{
use axum_extra::extract::Host;
use headers::{ContentType, HeaderMapExt};
use http::{HeaderValue, StatusCode, header};
use rand::{Rng, distributions::Alphanumeric};
use rand::{Rng, distr::Alphanumeric};
use rustical_store::auth::{AuthenticationProvider, User};
use serde::Deserialize;
use uuid::Uuid;
pub fn generate_app_token() -> String {
rand::thread_rng()
rand::rng()
.sample_iter(Alphanumeric)
.map(char::from)
.take(64)