mirror of
https://github.com/monero-project/monero.git
synced 2025-11-27 08:30:23 -05:00
Merge pull request #5727
7b9a420 Replace std::random_shuffle with std::shuffle (tomsmeding)
This commit is contained in:
commit
f205d28e96
5 changed files with 7 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue