Update dependencies
This commit is contained in:
1 parent
36a9ff41fd
commit
19ca861057
6 files changed
+856
-533
No files matched your search
@@ -5,9 +5,9 @@ fn generate_password(length: u8) -> String {
|
||||
let chars: Vec<char> = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"
|
||||
.chars()
|
||||
.collect();
|
||||
let mut rng = rand::thread_rng();
|
||||
let mut rng = rand::rng();
|
||||
(0..length)
|
||||
.map(|_| chars[rng.gen_range(0..chars.len())])
|
||||
.map(|_| chars[rng.random_range(0..chars.len())])
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user