mise 2024.1.16

The front-end to your dev env
1
2
3
4
5
6
7
8
9
10
use rand::distributions::Alphanumeric;
use rand::Rng;

pub fn random_string(length: usize) -> String {
    rand::thread_rng()
        .sample_iter(&Alphanumeric)
        .take(length)
        .map(char::from)
        .collect::<String>()
}