diff options
| author | MarcoFalke <[email protected]> | 2019-02-01 17:06:32 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-02-02 14:12:01 -0500 |
| commit | fae169c95e09ddf068dcaebc8170c4f41b02cf66 (patch) | |
| tree | 3d3072afbe6fafd6711dd6085001a8320662c28d /src/test/test_bitcoin.h | |
| parent | Merge #15235: Do not import private keys to wallets with private keys disabled (diff) | |
| download | discoin-fae169c95e09ddf068dcaebc8170c4f41b02cf66.tar.xz discoin-fae169c95e09ddf068dcaebc8170c4f41b02cf66.zip | |
test: Make bloom tests deterministic
Diffstat (limited to 'src/test/test_bitcoin.h')
| -rw-r--r-- | src/test/test_bitcoin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h index 71520232a..4a0684568 100644 --- a/src/test/test_bitcoin.h +++ b/src/test/test_bitcoin.h @@ -35,6 +35,11 @@ std::ostream& operator<<(typename std::enable_if<std::is_enum<T>::value, std::os */ extern FastRandomContext g_insecure_rand_ctx; +/** + * Flag to make GetRand in random.h return the same number + */ +extern bool g_mock_deterministic_tests; + static inline void SeedInsecureRand(bool deterministic = false) { g_insecure_rand_ctx = FastRandomContext(deterministic); |