Home
last modified time | relevance | path

Searched refs:Rand (Results 1 - 11 of 11) sorted by relevance

/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerMutate.cpp27 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher() argument
29 : Rand(Rand), Options(Options) { in MutationDispatcher()
65 static char RandCh(Random &Rand) { in RandCh() argument
66 if (Rand.RandBool()) return Rand(256); in RandCh()
68 return Special[Rand(sizeof(Special) - 1)]; in RandCh()
73 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom()
80 size_t Idx = Rand(Corpu in Mutate_CustomCrossOver()
[all...]
H A DFuzzerRandom.h21 size_t Rand() { return R(); } in Rand() function in fuzzer::Random
22 size_t RandBool() { return Rand() % 2; } in RandBool()
23 size_t operator()(size_t n) { return n ? Rand() % n : 0; } in operator ()()
H A DFuzzerCorpus.h83 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate() argument
84 InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; in ChooseUnitToMutate()
92 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate() argument
93 size_t Idx = static_cast<size_t>(CorpusDistribution(Rand.Get_mt19937())); in ChooseUnitIdxToMutate()
H A DFuzzerCrossOver.cpp24 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver()
38 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
H A DFuzzerMutate.h23 MutationDispatcher(Random &Rand, const FuzzingOptions &Options);
92 Random &GetRand() { return Rand; } in GetRand()
117 Random &Rand; member in fuzzer::MutationDispatcher
H A DFuzzerDriver.cpp450 Random Rand(Seed); in FuzzerDriver()
451 auto *MD = new MutationDispatcher(Rand, Options); in FuzzerDriver()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
H A DIRMutator.cpp39 auto RS = makeSampler<Function *>(IB.Rand); in mutate()
47 mutate(*makeSampler(IB.Rand, make_pointer_range(F)).getSelection(), IB); in mutate()
51 mutate(*makeSampler(IB.Rand, make_pointer_range(BB)).getSelection(), IB); in mutate()
61 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand); in mutateModule()
100 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred)); in chooseOperation()
114 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate()
154 auto RS = makeSampler<Instruction *>(IB.Rand); in mutate()
185 auto RS = makeSampler<Value *>(IB.Rand); in mutate()
H A DRandomIRBuilder.cpp33 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource()
44 auto RS = makeSampler<Value *>(Rand); in newSource()
97 auto RS = makeSampler<Use *>(Rand); in connectToSink()
124 if (uniform(Rand, 0, 1)) in newSink()
153 if (auto RS = makeSampler(Rand, make_filter_range(Insts, IsMatchingPtr))) in findPointer()
/third_party/json/tests/thirdparty/Fuzzer/test/
H A DFuzzerUnittest.cpp29 Random Rand(0); in TEST()
30 MutationDispatcher MD(Rand, {}); in TEST()
117 Random Rand(0); in TestEraseBytes()
118 MutationDispatcher MD(Rand, {}); in TestEraseBytes()
153 Random Rand(0); in TestInsertByte()
154 MutationDispatcher MD(Rand, {}); in TestInsertByte()
189 Random Rand(0); in TestInsertRepeatedBytes()
190 MutationDispatcher MD(Rand, {}); in TestInsertRepeatedBytes()
233 Random Rand(0); in TestChangeByte()
234 MutationDispatcher MD(Rand, {}); in TestChangeByte()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/
H A DRandomIRBuilder.h26 RandomEngine Rand; member
30 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
/third_party/skia/third_party/externals/freetype/src/psaux/
H A Dt1decode.c1099 FT_Fixed Rand; in FT_LOCAL_DEF() local
1102 Rand = seed; in FT_LOCAL_DEF()
1103 if ( Rand >= 0x8000L ) in FT_LOCAL_DEF()
1104 Rand++; in FT_LOCAL_DEF()
1106 top[0] = Rand; in FT_LOCAL_DEF()

Completed in 7 milliseconds