diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 22:11:45 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 22:11:45 +0200 |
commit | 14f479bb9cc47baf95df41026e54cef12014eaad (patch) | |
tree | 12614b686259f14a4ea7f55ed0ef528a972b37f2 /src/cryptonote_core | |
parent | Merge pull request #2225 (diff) | |
parent | core: fix invalid memory access creating tx (diff) | |
download | monero-14f479bb9cc47baf95df41026e54cef12014eaad.tar.xz |
Merge pull request #2262
7f7d42f8 core: fix invalid memory access creating tx (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 2 |
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 abb4b31ec..30e1431be 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -265,7 +265,7 @@ namespace cryptonote // "Shuffle" outs std::vector<tx_destination_entry> shuffled_dsts(destinations); - std::random_shuffle(shuffled_dsts.begin(), shuffled_dsts.end(), [](int i) { return crypto::rand<int>() % i; }); + std::random_shuffle(shuffled_dsts.begin(), shuffled_dsts.end(), [](unsigned int i) { return crypto::rand<unsigned int>() % i; }); uint64_t summary_outs_money = 0; //fill outputs |