Fix build: random_shuffle removal, Windows daemon missing objects

- Replace random_shuffle (removed in C++17) with std::shuffle in wallet.cpp
- Add -std=c++17 to makefile.mingw (Windows daemon was missing it)
- Add lz4.o, tor_embed_hooks.o, tor_embedded.o to makefile.mingw OBJS
- Add build rules for new objects in makefile.mingw
- Simplify Tor embedded build to use aggregate libtor.a

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 13:47:42 -07:00
parent 6724dfc832
commit 39e244a11c
6 changed files with 67 additions and 42 deletions
+2 -1
View File
@@ -14,6 +14,7 @@
#include "addressindex.h"
#include <boost/algorithm/string/replace.hpp>
#include <algorithm>
#include <random>
#include <deque>
using namespace std;
@@ -1477,7 +1478,7 @@ bool CWallet::SelectCoinsMinConf(int64_t nTargetValue, unsigned int nSpendTime,
vector<pair<int64_t, pair<const CWalletTx*,unsigned int> > > vValue;
int64_t nTotalLower = 0;
random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt);
std::shuffle(vCoins.begin(), vCoins.end(), std::mt19937(GetRandInt(std::numeric_limits<int>::max())));
for (COutput output : vCoins)
{