Switches Random handling to PCG family, specifically for better cross platform predictability.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-22 12:37:25 +02:00
parent a458a8da14
commit 28f427fa36
4 changed files with 2638 additions and 26 deletions

View File

@@ -5,6 +5,7 @@
#include <cstdint>
#include <random>
#include "Assert.hpp"
#include "../extern/pcg_random.hpp"
namespace Arbutils {
@@ -74,7 +75,7 @@ namespace Arbutils {
[[nodiscard]] inline constexpr uint_fast32_t GetSeed() const noexcept { return _seed; }
};
class Random : public BaseRandom<std::mt19937> {
class Random : public BaseRandom<pcg32> {
public:
constexpr Random() : BaseRandom() {}
explicit constexpr Random(uint_fast32_t seed) : BaseRandom(seed) {}