HistoryPurge: Clearing 219 old commits

This commit is contained in:
xpk
2024-10-24 23:09:21 +08:00
commit d08b7cac59
348 changed files with 376141 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
fn main() {
use rand::Rng;
const CHARSET: &[u8] = b"ABCDEFGHJKLMNPQRSTUVWXYZ\
abcdefghijkmnpqrstuvwxyz\
0123456789)(*&^%$#@!~ ";
const PASSWORD_LEN: usize = 20;
let mut rng = rand::thread_rng();
let password: String = (0..PASSWORD_LEN)
.map(|_| {
let idx = rng.gen_range(0..CHARSET.len());
CHARSET[idx] as char
})
.collect();
// println!("{:?}", password);
println!("{}", password);
}