parent
a07ac89cee
commit
0cc652e72e
|
@ -18,8 +18,8 @@ public:
|
||||||
PiRngWrapper(size_t maxValue) :
|
PiRngWrapper(size_t maxValue) :
|
||||||
maxVal(maxValue) {}
|
maxVal(maxValue) {}
|
||||||
typedef unsigned int result_type;
|
typedef unsigned int result_type;
|
||||||
static unsigned int min() { return 0; }
|
static constexpr unsigned int min() { return 0; }
|
||||||
static unsigned int max() { return std::numeric_limits<uint32_t>::max(); }
|
static constexpr unsigned int max() { return std::numeric_limits<uint32_t>::max(); }
|
||||||
unsigned int operator()()
|
unsigned int operator()()
|
||||||
{
|
{
|
||||||
return Pi::rng.Int32(maxVal);
|
return Pi::rng.Int32(maxVal);
|
||||||
|
|
Loading…
Reference in New Issue