bump deps & rust edition

This commit is contained in:
2025-02-26 21:37:34 +07:00
parent c6eaffdb29
commit 4b3b768723
9 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "gameserver"
edition = "2021"
edition = "2024"
version.workspace = true
[dependencies]
@@ -31,4 +31,4 @@ proto.workspace = true
proto-derive.workspace = true
rand.workspace = true
mhy-kcp.workspace = true
mhy-kcp.workspace = true
+1 -1
View File
@@ -144,7 +144,7 @@ impl Gateway {
fn next_conv_pair(&mut self) -> (u32, u32) {
(
self.id_counter.fetch_add(1, Ordering::SeqCst) + 1,
rand::thread_rng().next_u32(),
rand::rng().next_u32(),
)
}
}
+1 -1
View File
@@ -72,7 +72,7 @@ async fn create_battle_info(caster_id: u32, skill_index: u32) -> SceneBattleInfo
let mut battle_info = SceneBattleInfo {
stage_id: player.battle_config.stage_id,
logic_random_seed: rand::thread_rng().gen::<u32>(),
logic_random_seed: rand::rng().random::<u32>(),
battle_id: 1,
rounds_limit: player.battle_config.cycle_count,
world_level: 6,