fix
Some checks are pending
BlockStorage/repertory_linux_builds/pipeline/head Build queued...
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good

This commit is contained in:
2023-12-10 16:59:48 -06:00
parent daefa58c0c
commit d11767776e
2 changed files with 17 additions and 17 deletions

View File

@ -5396,7 +5396,7 @@ inline std::string random_string(size_t length) {
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz";
const size_t max_index = (sizeof(charset) - 1);
return charset[static_cast<size_t>(std::rand()) % max_index];
return charset[repertory_rand<std::size_t>() % max_index];
};
std::string str(length, 0);
std::generate_n(str.begin(), length, randchar);