Formatting
This commit is contained in:
parent
f5c2efee38
commit
273b0204d4
@ -9,7 +9,11 @@ fn main() {
|
||||
// Generate a random string of length n
|
||||
let mut new_password = String::new();
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user