mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-14 15:57:13 +00:00
The key came from the shared game random engine, which is seeded from the start time. It now comes from std::random_device through a small helper. The key stays a 32 bit number, so the packets do not change. The master and world servers no longer write the key or its hash to the log. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
13 lines
232 B
C++
13 lines
232 B
C++
#include "Game.h"
|
|
|
|
#include <random>
|
|
|
|
class Logger;
|
|
class dConfig;
|
|
namespace Game
|
|
{
|
|
Logger* logger;
|
|
dConfig* config = nullptr; // Permissions.cpp reads the permission levels from it
|
|
std::mt19937 randomEngine;
|
|
} // namespace Game
|