Faster PRNG

This commit is contained in:
Jean Pierre Cimalando 2020-02-14 07:17:28 +01:00
parent dbad2995c5
commit dc2e587fb0

View file

@ -101,7 +101,7 @@ constexpr Type mag2db(Type in)
*/
namespace Random {
static std::random_device randomDevice;
static std::mt19937 randomGenerator { randomDevice() };
static std::minstd_rand randomGenerator { randomDevice() };
} // namespace Random
/**