mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Merge pull request #2262
7f7d42f8
core: fix invalid memory access creating tx (moneromooo-monero)
This commit is contained in:
commit
14f479bb9c
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ namespace cryptonote
|
||||||
|
|
||||||
// "Shuffle" outs
|
// "Shuffle" outs
|
||||||
std::vector<tx_destination_entry> shuffled_dsts(destinations);
|
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;
|
uint64_t summary_outs_money = 0;
|
||||||
//fill outputs
|
//fill outputs
|
||||||
|
|
Loading…
Reference in a new issue