X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;h=c02b6bb9783d0d44aa87b2637ab27f1c58b01823;hb=8505dbffa6e9007b04626eed609cc419423ed202;hp=2455b272488ca34727b73fc80b801bdc2a7f4f34;hpb=95df147bd16a1b3052f1a62f18a3ef880b0ad0ab;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index 2455b27..c02b6bb 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -13,7 +13,7 @@ #include "coincontrol.h" #include #include - +#include #include "main.h" using namespace std; @@ -1829,7 +1829,9 @@ bool CWallet::SelectCoinsMinConf(int64_t nTargetValue, unsigned int nSpendTime, vector > > vValue; int64_t nTotalLower = 0; - random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt); + std::random_device rd; + std::mt19937 g(rd()); + shuffle(vCoins.begin(), vCoins.end(), g); BOOST_FOREACH(const COutput &output, vCoins) {