made a lot of changes, to get the render pipeline working
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
#include "IdGenerator.hpp"
|
||||
|
||||
std::mt19937 rnd = std::mt19937();
|
||||
bool init = false;
|
||||
std::mt19937 rnd;
|
||||
auto gen = uuids::uuid_random_generator(rnd);
|
||||
|
||||
uuids::uuid TSE::GenerateRandomUUID()
|
||||
{
|
||||
if(!init)
|
||||
{
|
||||
InitRandomIDs();
|
||||
init = true;
|
||||
}
|
||||
return gen();
|
||||
}
|
||||
}
|
||||
|
||||
void TSE::InitRandomIDs()
|
||||
{
|
||||
rnd = std::mt19937();
|
||||
gen = uuids::uuid_random_generator(rnd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user