Update dependencies

This commit is contained in:
Lncvrt committed 2025-02-17 11:36:38 -07:00
1 parent 36a9ff41fd
commit 19ca861057
6 files changed
+856 -533

No files matched your search

+2 -2
View File
@@ -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()
}