Test changes

This commit is contained in:
EmosewaMC
2023-05-24 14:00:50 -07:00
parent 59387e5fe3
commit 8e16573f93
2 changed files with 16 additions and 5 deletions

View File

@@ -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;