diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-07 21:09:19 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-07 21:09:19 +0100 |
commit | 7f7d42f8904924240a671cae6250f20299a74d1d (patch) | |
tree | f502a1e5fdbcfd3a9625eb93216fdba9b749215f /src/cryptonote_core | |
parent | Merge pull request #2254 (diff) | |
download | monero-7f7d42f8904924240a671cae6250f20299a74d1d.tar.xz |
core: fix invalid memory access creating tx
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 |