Merge pull request #2262

7f7d42f8 core: fix invalid memory access creating tx (moneromooo-monero)
release-v0.4.0.1
Riccardo Spagni 7 years ago
commit 14f479bb9c
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

@ -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

Loading…
Cancel
Save