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 > > vValue; int64 nTotalLower = 0; + random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt); + BOOST_FOREACH(COutput output, vCoins) { const CWalletTx *pcoin = output.tx;