Address compiler warnings #10
This commit is contained in:
@ -143,7 +143,7 @@ template <typename t>
|
||||
template <typename t>
|
||||
[[nodiscard]] auto random_between(const t &begin, const t &end) -> t {
|
||||
srand(static_cast<unsigned int>(get_time_now()));
|
||||
return begin + rand() % ((end + 1) - begin);
|
||||
return begin + static_cast<t>(rand()) % ((end + 1) - begin);
|
||||
}
|
||||
|
||||
template <typename t>
|
||||
|
Reference in New Issue
Block a user