Merge pull request #5727

7b9a420 Replace std::random_shuffle with std::shuffle (tomsmeding)
This commit is contained in:
luigi1111 2019-08-19 17:31:39 -05:00
commit f205d28e96
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
5 changed files with 7 additions and 7 deletions

View file

@ -293,7 +293,7 @@ namespace nodetool
if (anonymize)
{
std::random_shuffle(bs_head.begin(), bs_head.end());
std::shuffle(bs_head.begin(), bs_head.end(), crypto::random_device{});
if (bs_head.size() > depth)
bs_head.resize(depth);
for (auto &e: bs_head)