diff --git a/src/Intro.cpp b/src/Intro.cpp index 7432e6165..d926c082c 100644 --- a/src/Intro.cpp +++ b/src/Intro.cpp @@ -18,8 +18,8 @@ public: PiRngWrapper(size_t maxValue) : maxVal(maxValue) {} typedef unsigned int result_type; - static unsigned int min() { return 0; } - static unsigned int max() { return std::numeric_limits::max(); } + static constexpr unsigned int min() { return 0; } + static constexpr unsigned int max() { return std::numeric_limits::max(); } unsigned int operator()() { return Pi::rng.Int32(maxVal);