mirror of
https://github.com/monero-project/monero.git
synced 2024-12-16 05:14:21 -05:00
7b9a420787
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
net_node_common.h | ||
net_node.cpp | ||
net_node.h | ||
net_node.inl | ||
net_peerlist_boost_serialization.h | ||
net_peerlist.cpp | ||
net_peerlist.h | ||
p2p_protocol_defs.h | ||
stdafx.h |