X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=c02b6bb9783d0d44aa87b2637ab27f1c58b01823;hp=2455b272488ca34727b73fc80b801bdc2a7f4f34;hb=8505dbffa6e9007b04626eed609cc419423ed202;hpb=312eb2d73bed816dab63a8419d8ebc35d7f72913 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) {