Home
last modified time | relevance | path

Searched refs:Rand (Results 1 – 25 of 124) sorted by relevance

12345

/third_party/json/test/thirdparty/Fuzzer/
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(Corpus->size()); in Mutate_CustomCrossOver()
87 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver()
100 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes()
101 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes()
[all …]
DFuzzerRandom.h21 size_t Rand() { return R(); } in Rand() function
22 size_t RandBool() { return Rand() % 2; } in RandBool()
23 size_t operator()(size_t n) { return n ? Rand() % n : 0; } in operator()
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()
DFuzzerMutate.h23 MutationDispatcher(Random &Rand, const FuzzingOptions &Options);
92 Random &GetRand() { return Rand; } in GetRand()
117 Random &Rand; variable
DFuzzerCrossOver.cpp24 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver()
38 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
/third_party/json/test/thirdparty/Fuzzer/test/
DFuzzerUnittest.cpp29 Random Rand(0); in TEST() local
30 MutationDispatcher MD(Rand, {}); in TEST()
117 Random Rand(0); in TestEraseBytes() local
118 MutationDispatcher MD(Rand, {}); in TestEraseBytes()
153 Random Rand(0); in TestInsertByte() local
154 MutationDispatcher MD(Rand, {}); in TestInsertByte()
189 Random Rand(0); in TestInsertRepeatedBytes() local
190 MutationDispatcher MD(Rand, {}); in TestInsertRepeatedBytes()
233 Random Rand(0); in TestChangeByte() local
234 MutationDispatcher MD(Rand, {}); in TestChangeByte()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
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()
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/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/
DRandomIRBuilder.h26 RandomEngine Rand; member
30 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
/third_party/flutter/skia/third_party/externals/icu/source/data/curr/
Den_LS.txt8 "South African Rand",
Den_ZA.txt8 "South African Rand",
Dkea.txt520 "Rand sulafrikanu",
751 other{"Rand sulafrikanu"}
Dmg.txt223 "Rand afrikanina tatsimo",
Ddje.txt223 "Hawasa Afriki Rand",
Dtwq.txt223 "Hawasa Afriki Rand",
Dkhq.txt223 "Hawasa Afriki Rand",
/third_party/skia/third_party/externals/icu/source/data/curr/
Den_ZA.txt9 "South African Rand",
Den_LS.txt9 "South African Rand",
Dkea.txt521 "Rand sulafrikanu",
749 other{"Rand sulafrikanu"}
/third_party/icu/icu4c/source/data/curr/
Den_LS.txt9 "South African Rand",
Den_ZA.txt9 "South African Rand",
Dkea.txt521 "Rand sulafrikanu",
749 other{"Rand sulafrikanu"}
/third_party/flutter/skia/third_party/externals/freetype/src/psaux/
Dt1decode.c1099 FT_Fixed Rand; in t1_decoder_parse_charstrings() local
1102 Rand = seed; in t1_decoder_parse_charstrings()
1103 if ( Rand >= 0x8000L ) in t1_decoder_parse_charstrings()
1104 Rand++; in t1_decoder_parse_charstrings()
1106 top[0] = Rand; in t1_decoder_parse_charstrings()
/third_party/freetype/src/psaux/
Dt1decode.c1099 FT_Fixed Rand; in t1_decoder_parse_charstrings() local
1102 Rand = seed; in t1_decoder_parse_charstrings()
1103 if ( Rand >= 0x8000L ) in t1_decoder_parse_charstrings()
1104 Rand++; in t1_decoder_parse_charstrings()
1106 top[0] = Rand; in t1_decoder_parse_charstrings()
/third_party/skia/third_party/externals/freetype/src/psaux/
Dt1decode.c1099 FT_Fixed Rand; in t1_decoder_parse_charstrings() local
1102 Rand = seed; in t1_decoder_parse_charstrings()
1103 if ( Rand >= 0x8000L ) in t1_decoder_parse_charstrings()
1104 Rand++; in t1_decoder_parse_charstrings()
1106 top[0] = Rand; in t1_decoder_parse_charstrings()

12345