modified: Cargo.toml modified: src/config.rs new file: src/launcher.rs modified: src/main.rs new file: src/util.rs new file: src/www/font-awesome.min.css modified: src/www/portable.html
9 lines
200 B
Rust
9 lines
200 B
Rust
use rand::{distr::Alphanumeric, Rng};
|
|
|
|
pub fn random_string(len: usize) -> String {
|
|
rand::rng()
|
|
.sample_iter(&Alphanumeric)
|
|
.take(len)
|
|
.map(char::from)
|
|
.collect()
|
|
} |