changeset 2717:28ec4e934953 draft

Move the random_shuffle call back into SelectCoinsMinConf() so we can unit test it.
author Chris Moore <dooglus@gmail.com>
date Sat, 07 Apr 2012 10:52:40 -0700
parents ac431543ca42
children f9f75bb0460d
files src/wallet.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -926,6 +926,8 @@
     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;