aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-19 17:31:39 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-19 17:31:39 -0500
commitf205d28e96ef86303475a57b3fea15d2ede8a752 (patch)
tree441fdb1de85bd9eaf60b65fbfbfe3019957bb224 /src/cryptonote_core
parentMerge pull request #5725 (diff)
parentReplace std::random_shuffle with std::shuffle (diff)
downloadmonero-f205d28e96ef86303475a57b3fea15d2ede8a752.tar.xz
Merge pull request #5727
7b9a420 Replace std::random_shuffle with std::shuffle (tomsmeding)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_tx_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp
index 854f3d1c5..4cf71e558 100644
--- a/src/cryptonote_core/cryptonote_tx_utils.cpp
+++ b/src/cryptonote_core/cryptonote_tx_utils.cpp
@@ -354,7 +354,7 @@ namespace cryptonote
if (shuffle_outs)
{
- std::shuffle(destinations.begin(), destinations.end(), std::default_random_engine(crypto::rand<unsigned int>()));
+ std::shuffle(destinations.begin(), destinations.end(), crypto::random_device{});
}
// sort ins by their key image