Merge pull request #62 from jpcima/random

Optimize random
This commit is contained in:
Paul Ferrand 2020-02-14 11:49:50 +01:00 committed by GitHub
commit 294281b60c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
/**