bump deps & rust edition
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user