[Code] EQ::Random Global to Singleton Cleanup (#4936)

This commit is contained in:
Alex King
2025-06-22 14:13:58 -04:00
committed by GitHub
parent 2f4a5b56dd
commit f0c041e8b3
6 changed files with 11 additions and 10 deletions
+6
View File
@@ -116,6 +116,12 @@ namespace EQ {
Reseed();
}
static Random* Instance()
{
static Random instance;
return &instance;
}
private:
#ifndef BIASED_INT_DIST
typedef std::uniform_int_distribution<int>::param_type int_param_t;