File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ static inline void seed_insecure_rand(bool fDeterministic = false)
28
28
insecure_rand_ctx = FastRandomContext (insecure_rand_seed);
29
29
}
30
30
31
- static inline uint32_t insecure_rand (void )
32
- {
33
- return insecure_rand_ctx.rand32 ();
34
- }
31
+ static inline uint32_t insecure_rand () { return insecure_rand_ctx.rand32 (); }
32
+ static inline uint256 insecure_rand256 () { return insecure_rand_ctx.rand256 (); }
33
+ static inline uint64_t insecure_randbits (int bits) { return insecure_rand_ctx.randbits (bits); }
34
+ static inline uint64_t insecure_randrange (uint64_t range) { return insecure_rand_ctx.randrange (range); }
35
+ static inline bool insecure_randbool () { return insecure_rand_ctx.randbool (); }
36
+ static inline std::vector<unsigned char > insecure_randbytes (size_t len) { return insecure_rand_ctx.randbytes (len); }
35
37
36
38
/* * Basic testing setup.
37
39
* This just configures logging and chain parameters.
You can’t perform that action at this time.
0 commit comments