Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerMutate.cpp64 if (Rand.RandBool()) in RandCh()
155 Rand.RandBool() ? Rand(256) : (Rand.RandBool() ? 0 : 255)); in Mutate_InsertRepeatedBytes()
189 Rand.RandBool(); in ApplyDictionaryEntry()
190 if (Rand.RandBool()) { // Insert W. in ApplyDictionaryEntry()
216 bool HandleFirst = Rand.RandBool(); in MakeDictionaryEntryFromCMP()
246 if (Rand.RandBool()) Arg1 = Bswap(Arg1); in MakeDictionaryEntryFromCMP()
247 if (Rand.RandBool()) Arg2 = Bswap(Arg2); in MakeDictionaryEntryFromCMP()
271 if ((X.A >> 16) == 0 && (X.B >> 16) == 0 && Rand.RandBool()) in Mutate_AddWordFromTORC()
361 if (Size == MaxSize || Rand.RandBool()) in Mutate_CopyPart()
409 if (Rand.RandBool()) in ChangeBinaryInteger()
[all …]
H A DFuzzerRandom.h25 size_t RandBool() { return this->operator()() % 2; } in RandBool() function