Commit faf58218 authored by Max Kellermann's avatar Max Kellermann

util/LazyRandomEngine: make min()/max() static+constexpr

Required for building with libc++.
parent 188673b7
...@@ -49,12 +49,12 @@ public: ...@@ -49,12 +49,12 @@ public:
*/ */
void AutoCreate(); void AutoCreate();
result_type min() const { static constexpr result_type min() {
return engine->min(); return std::mt19937::min();
} }
result_type max() const { static constexpr result_type max() {
return engine->max(); return std::mt19937::max();
} }
result_type operator()() { result_type operator()() {
......
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