16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 13:39:18 +02:00

Fix random trivia engine

This commit is contained in:
2025-09-30 20:51:59 +02:00
parent f2e852c969
commit f8b781e23f
2 changed files with 5 additions and 4 deletions

View File

@@ -114,8 +114,9 @@ double Random(double a, double b)
int RandomInt(int min, int max)
{
static std::mt19937 engine(std::random_device{}());
std::uniform_int_distribution<int> dist(min, max);
return dist(Global.random_engine);
return dist(engine);
}