Skip to content

Commit 44f5327

Browse files
committed
[fuzz] add SeedRandomStateForTest(SeedRand::ZEROS) to txorphan
1 parent 15a4ec9 commit 44f5327

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/fuzz/txorphan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ void initialize_orphanage()
3232

3333
FUZZ_TARGET(txorphan, .init = initialize_orphanage)
3434
{
35+
SeedRandomStateForTest(SeedRand::ZEROS);
3536
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
36-
FastRandomContext orphanage_rng{/*fDeterministic=*/true};
37+
FastRandomContext orphanage_rng{ConsumeUInt256(fuzzed_data_provider)};
3738
SetMockTime(ConsumeTime(fuzzed_data_provider));
3839

3940
node::TxOrphanage orphanage;

0 commit comments

Comments
 (0)