Fixed random seed when run in benchmark mode, use default random engine instead of fixed mersene twister
Refs #269
This commit is contained in:
parent
5790f30c17
commit
9e073bdd3b
11 changed files with 55 additions and 60 deletions
|
|
@ -1009,7 +1009,7 @@ public:
|
|||
glm::vec3(1.0f, 1.0f, 0.0f),
|
||||
};
|
||||
|
||||
std::mt19937 rndGen(benchmark.active ? 0 : (unsigned)time(NULL));
|
||||
std::default_random_engine rndGen(benchmark.active ? 0 : (unsigned)time(nullptr));
|
||||
std::uniform_real_distribution<float> rndDist(-1.0f, 1.0f);
|
||||
std::uniform_int_distribution<uint32_t> rndCol(0, static_cast<uint32_t>(colors.size()-1));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue