New UI layout and UI improvements. Fixes #50

This commit is contained in:
emeric
2020-05-10 13:11:43 +02:00
parent 8277b9c82b
commit 74fc4e058e
79 changed files with 3003 additions and 1987 deletions
+6 -1
View File
@@ -24,10 +24,15 @@ namespace Random {
RandGenerator& getRandGenerator()
{
static thread_local std::random_device rd;
static thread_local std::mt19937 randGenerator(rd());
static thread_local RandGenerator randGenerator(rd());
return randGenerator;
}
RandGenerator createSeededGenerator(std::size_t seed)
{
return RandGenerator {seed};
}
} // Random
+2
View File
@@ -27,6 +27,8 @@ namespace Random {
using RandGenerator = std::mt19937;
RandGenerator& getRandGenerator();
RandGenerator createSeededGenerator(std::size_t seed);
template <typename T>
T
getRandom(T min, T max)