diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-07 11:40:59 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-04-15 08:51:39 +0200 |
commit | 549c82ad3a34a885ecca37a5f04c36dfbaa95d17 (patch) | |
tree | 86a546ab760102a8309497134c287978e9e44ad8 /src/test | |
parent | 29ae1c13a59187119f5b2a38b54dbbec936d8f87 (diff) |
fuzz: use ConsumeBool() instead of !ConsumeBool()
The former is shorter and ends up with a "random" bool anyway.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/util.cpp b/src/test/fuzz/util.cpp index f772bc01d8..b8d846a995 100644 --- a/src/test/fuzz/util.cpp +++ b/src/test/fuzz/util.cpp @@ -178,7 +178,7 @@ bool FuzzedSock::Wait(std::chrono::milliseconds timeout, Event requested, Event* EINTR, EINVAL, }; - if (!m_fuzzed_data_provider.ConsumeBool()) { + if (m_fuzzed_data_provider.ConsumeBool()) { SetFuzzedErrNo(m_fuzzed_data_provider, wait_errnos); return false; } |