Make random::generator::min/max constexpr
This commit is contained in:
parent
d1975dd917
commit
535627f962
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue