Commit b784b999 authored by salix5's avatar salix5

update class mt19937

parent 5dec848b
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
class mt19937 { class mt19937 {
public: public:
const unsigned int rand_max;
mt19937() : mt19937() :
rng(), rand_max((rng.max)()) {} rng(), rand_max((rng.max)()) {}
explicit mt19937(unsigned int seed) : explicit mt19937(unsigned int seed) :
...@@ -62,7 +64,6 @@ public: ...@@ -62,7 +64,6 @@ public:
private: private:
std::mt19937 rng; std::mt19937 rng;
const unsigned int rand_max;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment