diff options
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index f7e931dbbb..36dbe7aeb1 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -926,6 +926,8 @@ bool CWallet::SelectCoinsMinConf(int64 nTargetValue, int nConfMine, int nConfThe vector<pair<int64, pair<const CWalletTx*,unsigned int> > > vValue; int64 nTotalLower = 0; + random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt); + BOOST_FOREACH(COutput output, vCoins) { const CWalletTx *pcoin = output.tx; |