Update backend dependencies
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-28 15:06:16 +01:00
parent 646bf2c0aa
commit c6e53d5790
3 changed files with 739 additions and 610 deletions

View File

@ -1,11 +1,6 @@
use rand::distributions::Alphanumeric;
use rand::Rng;
use rand::distr::{Alphanumeric, SampleString};
/// Generate a random string of a given size
/// Generate a random string of a given length
pub fn rand_str(len: usize) -> String {
rand::thread_rng()
.sample_iter(&Alphanumeric)
.map(char::from)
.take(len)
.collect()
}
Alphanumeric.sample_string(&mut rand::rng(), len)
}