diff --git a/alib2std/src/extensions/random.hpp b/alib2std/src/extensions/random.hpp index 01fd46b7484520f6d3ceb6d0f0bef4902901c3bc..33739fa8a697ffed213edf20a88d79d4b3870f66 100644 --- a/alib2std/src/extensions/random.hpp +++ b/alib2std/src/extensions/random.hpp @@ -104,7 +104,7 @@ private: * * \return minimal value in the range of generated values */ - result_type min() { + static constexpr result_type min() { return 0; } @@ -114,7 +114,7 @@ private: * * \return maximal value in the range of generated values */ - result_type max() { + static constexpr result_type max() { return std::numeric_limits<result_type>::max() ; }