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

Required for building with libc++.
This commit is contained in:
Max Kellermann 2013-11-11 12:26:59 +01:00
parent 188673b746
commit faf5821816

View File

@ -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()() {