diff --git a/doc/release-notes.md b/doc/release-notes.md --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -6,3 +6,4 @@ - From 0.20.1 onwards macOS <10.10 is no longer supported. 0.20.1 is built using Qt 5.9.6, which doesn't support versions of macOS older than 10.10. + - `sendmany` now shuffles outputs to improve privacy, so any previously expected behavior with regards to output ordering can no longer be relied upon. diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1349,6 +1349,9 @@ "Account has insufficient funds"); } + // Shuffle recipient list + std::shuffle(vecSend.begin(), vecSend.end(), FastRandomContext()); + // Send CReserveKey keyChange(pwallet); Amount nFeeRequired = Amount::zero();