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
..
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2018-10-08 11:36:42 +00:00
2019-03-05 22:05:34 +01:00
2019-07-16 11:35:53 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-04-14 08:35:38 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-05-02 09:47:01 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-01-22 23:17:42 +00:00
2019-05-01 19:58:09 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2018-09-12 22:44:34 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-04-17 10:26:25 +09:00
2019-03-05 22:05:34 +01:00
2019-03-24 20:24:28 +01:00
2019-03-05 22:05:34 +01:00
2018-09-29 22:19:44 +02:00
2019-01-22 23:17:24 +00:00
2019-07-04 22:13:16 +00:00
2019-03-19 17:52:26 +00:00
2019-04-23 15:27:54 +00:00
2019-04-09 20:21:45 +09:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2018-09-29 22:20:38 +02:00
2019-05-10 14:15:35 +00:00
2019-03-05 22:05:34 +01:00
2018-09-11 13:38:19 +00:00
2019-03-25 01:35:13 +00:00
2019-07-16 11:35:53 +00:00
2019-02-01 19:14:55 +00:00
2019-05-07 17:30:27 +02:00
2019-07-24 14:06:11 -05:00
2019-03-05 22:05:34 +01:00
2019-01-22 20:30:51 +00:00
2018-07-05 09:18:01 +01:00
2019-08-15 16:33:15 +02:00
2018-10-18 18:45:45 +00:00
2019-08-15 16:33:15 +02:00
2019-04-11 19:44:06 +00:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2018-10-01 09:14:20 +00:00
2019-03-05 22:05:34 +01:00
2019-04-29 20:52:40 +00:00
2019-03-05 22:05:34 +01:00
2018-06-26 22:15:22 +01:00
2019-03-05 22:05:34 +01:00
2019-03-05 22:05:34 +01:00
2019-05-01 18:41:39 +00:00
2019-04-29 20:52:40 +00:00
2019-03-05 22:05:34 +01:00
2018-09-29 22:19:44 +02:00