Skip to content

Commit

Permalink
Change edition to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijan committed Feb 23, 2025
1 parent d4112a2 commit 15bbde9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
edition = "2021"
edition = "2024"

[workspace]
members = ["entities", "game", "l2-core", "login", "macro-common", "migration", "test-utils"]
Expand Down
2 changes: 1 addition & 1 deletion l2-core/src/crypt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn generate_blowfish_key(size: Option<usize>) -> Vec<u8> {
let mut key = vec![0u8; the_size];
let mut rng = thread_rng();
for item in key.iter_mut().take(the_size) {
*item = rng.gen();
*item = rng.r#gen();
}
key
}
8 changes: 4 additions & 4 deletions l2-core/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ impl SessionKey {
pub fn new() -> Self {
let mut rng = rand::thread_rng();
SessionKey {
play_ok1: rng.gen(),
play_ok2: rng.gen(),
login_ok1: rng.gen(),
login_ok2: rng.gen(),
play_ok1: rng.r#gen(),
play_ok2: rng.r#gen(),
login_ok1: rng.r#gen(),
login_ok2: rng.r#gen(),
}
}
#[must_use]
Expand Down
2 changes: 1 addition & 1 deletion login/src/controller/player_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ impl LoginController {
Standard: Distribution<T>,
{
let mut rng = rand::thread_rng();
rng.gen()
rng.r#gen()
}
}

0 comments on commit 15bbde9

Please sign in to comment.