diff options
-rw-r--r-- | src/util/LazyRandomEngine.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/LazyRandomEngine.hxx b/src/util/LazyRandomEngine.hxx index 8afe1d1c0..bfe4bb60c 100644 --- a/src/util/LazyRandomEngine.hxx +++ b/src/util/LazyRandomEngine.hxx @@ -49,12 +49,12 @@ public: */ void AutoCreate(); - result_type min() const { - return engine->min(); + static constexpr result_type min() { + return std::mt19937::min(); } - result_type max() const { - return engine->max(); + static constexpr result_type max() { + return std::mt19937::max(); } result_type operator()() { |