diff --git a/src/test/util/setup_common.h b/src/test/util/setup_common.h index b73acc1de53..5b8db6ed760 100644 --- a/src/test/util/setup_common.h +++ b/src/test/util/setup_common.h @@ -13,6 +13,7 @@ #include #include #include +#include #include // IWYU pragma: export #include #include @@ -64,6 +65,7 @@ struct TestOpts { struct BasicTestingSetup { util::SignalInterrupt m_interrupt; node::NodeContext m_node; // keep as first member to be destructed last + FastRandomContext& m_rng{g_insecure_rand_ctx}; // Alias (reference) for the global, to allow easy removal of the global in the future. explicit BasicTestingSetup(const ChainType chainType = ChainType::MAIN, TestOpts = {}); ~BasicTestingSetup();