We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae7e37 commit fa2cb65Copy full SHA for fa2cb65
src/test/util/setup_common.h
@@ -13,6 +13,7 @@
13
#include <primitives/transaction.h>
14
#include <pubkey.h>
15
#include <stdexcept>
16
+#include <test/util/random.h>
17
#include <util/chaintype.h> // IWYU pragma: export
18
#include <util/check.h>
19
#include <util/fs.h>
@@ -64,6 +65,7 @@ struct TestOpts {
64
65
struct BasicTestingSetup {
66
util::SignalInterrupt m_interrupt;
67
node::NodeContext m_node; // keep as first member to be destructed last
68
+ FastRandomContext& m_rng{g_insecure_rand_ctx}; // Alias (reference) for the global, to allow easy removal of the global in the future.
69
70
explicit BasicTestingSetup(const ChainType chainType = ChainType::MAIN, TestOpts = {});
71
~BasicTestingSetup();
0 commit comments