diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-08-19 17:31:39 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-19 17:31:39 -0500 |
commit | f205d28e96ef86303475a57b3fea15d2ede8a752 (patch) | |
tree | 441fdb1de85bd9eaf60b65fbfbfe3019957bb224 /src/p2p/net_peerlist.h | |
parent | Merge pull request #5725 (diff) | |
parent | Replace std::random_shuffle with std::shuffle (diff) | |
download | monero-f205d28e96ef86303475a57b3fea15d2ede8a752.tar.xz |
Merge pull request #5727
7b9a420 Replace std::random_shuffle with std::shuffle (tomsmeding)
Diffstat (limited to 'src/p2p/net_peerlist.h')
-rw-r--r-- | src/p2p/net_peerlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_peerlist.h b/src/p2p/net_peerlist.h index 68627375a..c65b9dd82 100644 --- a/src/p2p/net_peerlist.h +++ b/src/p2p/net_peerlist.h @@ -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) |