mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-12 18:38:10 +00:00
Test changes
This commit is contained in:
@@ -27,12 +27,17 @@ private:
|
||||
|
||||
uint32_t currentObjectID; //!< The current object ID
|
||||
|
||||
std::random_device rd;
|
||||
|
||||
std::mt19937 rng;
|
||||
|
||||
public:
|
||||
|
||||
//! The singleton instance
|
||||
static ObjectIDManager* Instance() {
|
||||
if (m_Address == 0) {
|
||||
m_Address = new ObjectIDManager;
|
||||
m_Address->rng = std::mt19937(m_Address->rd());
|
||||
}
|
||||
|
||||
return m_Address;
|
||||
|
Reference in New Issue
Block a user