diff options
| author | Pieter Wuille <[email protected]> | 2017-02-17 16:32:16 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-03-29 00:40:17 -0700 |
| commit | c21cbe61c6249bcfca098705df6f9b4baab9f296 (patch) | |
| tree | ddc52711d82709261d7fdfb541dee9a5f7e76079 /src/wallet/wallet.cpp | |
| parent | Merge #10088: Trivial: move several relay options into the relay help group (diff) | |
| download | discoin-c21cbe61c6249bcfca098705df6f9b4baab9f296.tar.xz discoin-c21cbe61c6249bcfca098705df6f9b4baab9f296.zip | |
Introduce FastRandomContext::randbool()
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 39e2ab7c1..2f9d47aa0 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2048,7 +2048,7 @@ static void ApproximateBestSubset(const std::vector<std::pair<CAmount, std::pair //that the rng is fast. We do not use a constant random sequence, //because there may be some privacy improvement by making //the selection random. - if (nPass == 0 ? insecure_rand.rand32()&1 : !vfIncluded[i]) + if (nPass == 0 ? insecure_rand.randbool() : !vfIncluded[i]) { nTotal += vValue[i].first; vfIncluded[i] = true; |