remove static from random dev

v1
Brett 2023-08-17 12:20:59 -04:00
parent ea986bbc95
commit 6579a3f5cb
1 changed files with 4 additions and 4 deletions

View File

@ -154,11 +154,11 @@ namespace blt::uuid
static uuid_t genV4() static uuid_t genV4()
{ {
static std::random_device rd; std::random_device rd;
std::seed_seq seed{ rd(), rd(), rd(), rd() }; std::seed_seq seed{ rd(), rd(), rd(), rd() };
static std::mt19937_64 gen(seed); std::mt19937_64 gen(seed);
static std::uniform_int_distribution<int> dis(0, 15); std::uniform_int_distribution<int> dis(0, 15);
static std::uniform_int_distribution<> dis2(8, 11); std::uniform_int_distribution<> dis2(8, 11);
std::stringstream ss; std::stringstream ss;
int i; int i;