HistoryPurge: Clearing 219 old commits
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user