Home
last modified time | relevance | path

Searched refs:RandBool (Results 1 – 2 of 2) sorted by relevance

/third_party/json/tests/thirdparty/Fuzzer/
DFuzzerMutate.cpp66 if (Rand.RandBool()) return Rand(256); in RandCh()
143 uint8_t Byte = Rand.RandBool() ? Rand(256) : (Rand.RandBool() ? 0 : 255); in Mutate_InsertRepeatedBytes()
182 Rand.RandBool(); in ApplyDictionaryEntry()
183 if (Rand.RandBool()) { // Insert W. in ApplyDictionaryEntry()
207 bool HandleFirst = Rand.RandBool(); in MakeDictionaryEntryFromCMP()
215 if (Rand.RandBool()) ExistingBytes = Bswap(ExistingBytes); in MakeDictionaryEntryFromCMP()
216 if (Rand.RandBool()) DesiredBytes = Bswap(DesiredBytes); in MakeDictionaryEntryFromCMP()
239 if (Rand.RandBool()) { in Mutate_AddWordFromTORC()
244 if ((X.A >> 16) == 0 && (X.B >> 16) == 0 && Rand.RandBool()) in Mutate_AddWordFromTORC()
321 if (Rand.RandBool()) in Mutate_CopyPart()
[all …]
DFuzzerRandom.h22 size_t RandBool() { return Rand() % 2; } in RandBool() function