monero/src/p2p
Tom Smeding 7b9a420787 Replace std::random_shuffle with std::shuffle
According to [1], std::random_shuffle is deprecated in C++14 and removed
in C++17. Since std::shuffle is available since C++11 as a replacement
and monero already requires C++11, this is a good replacement.

A cryptographically secure random number generator is used in all cases
to prevent people from perhaps copying an insecure std::shuffle call
over to a place where a secure one would be warranted. A form of
defense-in-depth.

[1]: https://en.cppreference.com/w/cpp/algorithm/random_shuffle
2019-08-15 16:33:15 +02:00
..
CMakeLists.txt Update 2019 copyright 2019-03-05 22:05:34 +01:00
net_node_common.h allow blocking whole subnets 2019-07-16 11:35:53 +00:00
net_node.cpp Merge pull request #5610 2019-07-24 14:35:11 -05:00
net_node.h Merge pull request #5610 2019-07-24 14:35:11 -05:00
net_node.inl Merge pull request #5610 2019-07-24 14:35:11 -05:00
net_peerlist_boost_serialization.h p2p: fix GCC 9.1 crash 2019-06-08 17:52:53 +00:00
net_peerlist.cpp Adding initial support for broadcasting transactions over Tor 2019-01-28 23:56:33 +00:00
net_peerlist.h Replace std::random_shuffle with std::shuffle 2019-08-15 16:33:15 +02:00
p2p_protocol_defs.h p2p: do not send last_seen timestamp to peers 2019-04-24 17:56:12 +00:00
stdafx.h Update 2019 copyright 2019-03-05 22:05:34 +01:00