diff --git a/nano/node/node.cpp b/nano/node/node.cpp index 8dadd31be..572104553 100644 --- a/nano/node/node.cpp +++ b/nano/node/node.cpp @@ -352,7 +352,7 @@ void nano::network::broadcast_confirm_req (std::shared_ptr block_a) * if the votes for a block have not arrived in time. */ const size_t max_endpoints = 32; - std::random_shuffle (list->begin (), list->end ()); + random_pool.Shuffle (list->begin (), list->end ()); if (list->size () > max_endpoints) { list->erase (list->begin () + max_endpoints, list->end ()); diff --git a/nano/node/peers.cpp b/nano/node/peers.cpp index 6e70d28bc..8ad37977f 100644 --- a/nano/node/peers.cpp +++ b/nano/node/peers.cpp @@ -103,7 +103,7 @@ std::deque nano::peer_container::list () { result.push_back (i->endpoint); } - std::random_shuffle (result.begin (), result.end ()); + random_pool.Shuffle (result.begin (), result.end ()); return result; } @@ -126,7 +126,7 @@ std::vector nano::peer_container::list_vector (size_t co { result.push_back (*i); } - std::random_shuffle (result.begin (), result.end ()); + random_pool.Shuffle (result.begin (), result.end ()); if (result.size () > count_a) { result.resize (count_a, nano::peer_information (nano::endpoint{}, 0));