Formatting

This commit is contained in:
Maximilian 2023-01-10 11:22:51 -06:00
parent f5c2efee38
commit 273b0204d4

View File

@ -9,7 +9,11 @@ fn main() {
// Generate a random string of length n // Generate a random string of length n
let mut new_password = String::new(); let mut new_password = String::new();
for _ in 0..new_password_length { for _ in 0..new_password_length {
new_password.push(allowed_chars.chars().nth(rand::random::<usize>() % allowed_chars.len()).unwrap()); new_password.push(
allowed_chars.chars()
.nth(rand::random::<usize>() % allowed_chars.len())
.unwrap()
);
} }
// Print the new password // Print the new password