aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-07 22:11:45 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-07 22:11:45 +0200
commit14f479bb9cc47baf95df41026e54cef12014eaad (patch)
tree12614b686259f14a4ea7f55ed0ef528a972b37f2
parentMerge pull request #2225 (diff)
parentcore: fix invalid memory access creating tx (diff)
downloadmonero-14f479bb9cc47baf95df41026e54cef12014eaad.tar.xz
Merge pull request #2262
7f7d42f8 core: fix invalid memory access creating tx (moneromooo-monero)
-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 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