Make random::generator::min/max constexpr

This commit is contained in:
Nikita Lisitsa 2023-08-22 20:28:44 +03:00
parent d1975dd917
commit 535627f962

View file

@ -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<result_type>::max();
}