mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-12 14:47:46 +00:00
Fix SID generation
I messed this up when porting to fastrand, it ended up extending *one* single letter to 56 chars.
This commit is contained in:
parent
092cec19d5
commit
8790f443a2
1 changed files with 3 additions and 2 deletions
|
@ -112,7 +112,8 @@ impl LoginDatabase {
|
|||
}
|
||||
|
||||
fn generate_sid() -> String {
|
||||
let random_id: String = String::from_utf8([fastrand::alphanumeric() as u8; 56].to_vec())
|
||||
let random_id: String =
|
||||
String::from_utf8((0..56).map(|_| fastrand::alphanumeric() as u8).collect())
|
||||
.expect("Failed to create random SID");
|
||||
random_id.to_lowercase()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue