File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ struct CheckGlobalsImpl {
2424 " The current fuzz target used the global random state.\n\n "
2525
2626 " This is acceptable, but requires the fuzz target to call \n "
27- " SeedRandomStateForTest(SeedRand::ZEROS) at the beginning \n "
28- " of processing the fuzz input .\n\n "
27+ " SeedRandomStateForTest(SeedRand::ZEROS) in the first line \n "
28+ " of the FUZZ_TARGET function .\n\n "
2929
3030 " An alternative solution would be to avoid any use of globals.\n\n "
3131
32- " Without a solution, fuzz stability and determinism can lead \n "
32+ " Without a solution, fuzz instability and non- determinism can lead \n "
3333 " to non-reproducible bugs or inefficient fuzzing.\n\n "
3434 << std::endl;
3535 std::abort (); // Abort, because AFL may try to recover from a std::exit
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ using node::BlockAssembler;
2121
2222FUZZ_TARGET (utxo_total_supply)
2323{
24+ SeedRandomStateForTest (SeedRand::ZEROS);
2425 /* * The testing setup that creates a chainman only (no chainstate) */
2526 ChainTestingSetup test_setup{
2627 ChainType::REGTEST,
2728 {
2829 .extra_args = {" -testactivationheight=bip34@2" },
2930 },
3031 };
31- SeedRandomStateForTest (SeedRand::ZEROS); // Can not be done before test_setup
3232 // Create chainstate
3333 test_setup.LoadVerifyActivateChainstate ();
3434 auto & node{test_setup.m_node };
You can’t perform that action at this time.
0 commit comments