aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_bitcoin.h')
-rw-r--r--src/test/test_bitcoin.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h
index 80d46e04a6..821ae060b5 100644
--- a/src/test/test_bitcoin.h
+++ b/src/test/test_bitcoin.h
@@ -28,10 +28,12 @@ static inline void seed_insecure_rand(bool fDeterministic = false)
insecure_rand_ctx = FastRandomContext(insecure_rand_seed);
}
-static inline uint32_t insecure_rand(void)
-{
- return insecure_rand_ctx.rand32();
-}
+static inline uint32_t insecure_rand() { return insecure_rand_ctx.rand32(); }
+static inline uint256 insecure_rand256() { return insecure_rand_ctx.rand256(); }
+static inline uint64_t insecure_randbits(int bits) { return insecure_rand_ctx.randbits(bits); }
+static inline uint64_t insecure_randrange(uint64_t range) { return insecure_rand_ctx.randrange(range); }
+static inline bool insecure_randbool() { return insecure_rand_ctx.randbool(); }
+static inline std::vector<unsigned char> insecure_randbytes(size_t len) { return insecure_rand_ctx.randbytes(len); }
/** Basic testing setup.
* This just configures logging and chain parameters.