Address compiler warnings #10
All checks were successful
BlockStorage/repertory_osx/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good

This commit is contained in:
2023-10-30 12:06:07 -05:00
parent c0e720498d
commit e7413fb741
5 changed files with 7 additions and 9 deletions

View File

@ -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>