diff --git a/src/random.h b/src/random.h index 0464bdce14..82886bec59 100644 --- a/src/random.h +++ b/src/random.h @@ -42,6 +42,10 @@ public: return (Rw << 16) + Rz; } + bool randbool() { + return rand32() & 1; + } + uint32_t Rz; uint32_t Rw; }; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 39e2ab7c1f..2f9d47aa0f 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2048,7 +2048,7 @@ static void ApproximateBestSubset(const std::vector