Switches Random handling to PCG family, specifically for better cross platform predictability.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user