From e333ab56d5b9fd6b0510ef6b98caa8bfc5059082 Mon Sep 17 00:00:00 2001 From: Chris Moore Date: Sat, 7 Apr 2012 10:52:40 -0700 Subject: [PATCH] Move the random_shuffle call back into SelectCoinsMinConf() so we can unit test it. --- src/wallet.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;