mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 13:13:27 +01:00
Merge pull request #2206
340feede
core: randomly shuffle outputs (moneromooo-monero)
This commit is contained in:
commit
61ac6983f2
@ -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::sort(shuffled_dsts.begin(), shuffled_dsts.end(), [](const tx_destination_entry& de1, const tx_destination_entry& de2) { return de1.amount < de2.amount; } );
|
std::random_shuffle(shuffled_dsts.begin(), shuffled_dsts.end(), [](int i) { return crypto::rand<int>() % i; });
|
||||||
|
|
||||||
uint64_t summary_outs_money = 0;
|
uint64_t summary_outs_money = 0;
|
||||||
//fill outputs
|
//fill outputs
|
||||||
|
Loading…
Reference in New Issue
Block a user