diff --git a/libs/random/include/psemek/random/generator.hpp b/libs/random/include/psemek/random/generator.hpp index 611f4ba1..2c63f0ea 100644 --- a/libs/random/include/psemek/random/generator.hpp +++ b/libs/random/include/psemek/random/generator.hpp @@ -42,12 +42,12 @@ namespace psemek::random return (xorshifted >> rot) | (xorshifted << ((-rot) & 31)); } - static result_type min() + static constexpr result_type min() { return 0; } - static result_type max() + static constexpr result_type max() { return std::numeric_limits::max(); }