Skip to content

Commit 549c82a

Browse files
committed
fuzz: use ConsumeBool() instead of !ConsumeBool()
The former is shorter and ends up with a "random" bool anyway.
1 parent 29ae1c1 commit 549c82a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ bool FuzzedSock::Wait(std::chrono::milliseconds timeout, Event requested, Event*
178178
EINTR,
179179
EINVAL,
180180
};
181-
if (!m_fuzzed_data_provider.ConsumeBool()) {
181+
if (m_fuzzed_data_provider.ConsumeBool()) {
182182
SetFuzzedErrNo(m_fuzzed_data_provider, wait_errnos);
183183
return false;
184184
}

0 commit comments

Comments
 (0)