aboutsummaryrefslogtreecommitdiff
path: root/src/network/room.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-03-31 20:12:41 +0200
committercrueter <crueter@eden-emu.dev>2026-03-31 20:12:41 +0200
commitee2891c55e0386ae803aa4d09a4e3110db3143ef (patch)
tree07384946edd6f4fbbd7527190f07b48bd305d940 /src/network/room.cpp
parentdd91b41a786a4d0402935f171f2f37e2e7ba5556 (diff)
[common] unify std::random_device (#3801)
Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3801 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/network/room.cpp')
-rw-r--r--src/network/room.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/room.cpp b/src/network/room.cpp
index 7c257d2bd4..2069673bae 100644
--- a/src/network/room.cpp
+++ b/src/network/room.cpp
@@ -23,8 +23,6 @@ namespace Network {
class Room::RoomImpl {
public:
- std::mt19937 random_gen; ///< Random number generator. Used for GenerateFakeIPAddress
-
ENetHost* server = nullptr; ///< Network interface.
std::atomic<State> state{State::Closed}; ///< Current state of the room.
@@ -51,7 +49,7 @@ public:
IPBanList ip_ban_list; ///< List of banned IP addresses
mutable std::mutex ban_list_mutex; ///< Mutex for the ban lists
- RoomImpl() : random_gen(std::random_device()()) {}
+ RoomImpl() {}
/// Thread that receives and dispatches network packets
std::optional<std::jthread> room_thread;