Ready to initiate OpenID login
This commit is contained in:
@ -1 +1,2 @@
|
||||
pub mod rand_utils;
|
||||
pub mod time_utils;
|
||||
|
6
moneymgr_backend/src/utils/rand_utils.rs
Normal file
6
moneymgr_backend/src/utils/rand_utils.rs
Normal file
@ -0,0 +1,6 @@
|
||||
use rand::distr::{Alphanumeric, SampleString};
|
||||
|
||||
/// Generate a random string of a given length
|
||||
pub fn rand_string(len: usize) -> String {
|
||||
Alphanumeric.sample_string(&mut rand::rng(), len)
|
||||
}
|
Reference in New Issue
Block a user