Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/fuzzer/
H A DFuzzerMutate.cpp29 : Rand(Rand), Options(Options) { in MutationDispatcher()
64 if (Rand.RandBool()) return Rand(256); in RandCh()
71 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom()
138 uint8_t Byte = Rand.RandBool() ? Rand(256) : (Rand.RandBool() ? 0 : 255); in Mutate_InsertRepeatedBytes()
246 switch (Rand(4)) { in Mutate_AddWordFromTORC()
248 auto X = TPC.TORC8.Get(Rand.Rand()); in Mutate_AddWordFromTORC()
252 auto X = TPC.TORC4.Get(Rand.Rand()); in Mutate_AddWordFromTORC()
259 auto X = TPC.TORCW.Get(Rand.Rand()); in Mutate_AddWordFromTORC()
263 auto X = TPC.MMT.Get(Rand.Rand()); in Mutate_AddWordFromTORC()
365 switch(Rand(5)) { in Mutate_ChangeASCIIInteger()
[all …]
H A DFuzzerRandom.h22 size_t Rand() { return this->operator()(); } in Rand() function
23 size_t RandBool() { return Rand() % 2; } in RandBool()
24 size_t operator()(size_t n) { return n ? Rand() % n : 0; } in operator()
H A DFuzzerCrossOver.cpp24 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver()
38 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
H A DFuzzerMutate.h24 MutationDispatcher(Random &Rand, const FuzzingOptions &Options);
94 Random &GetRand() { return Rand; } in GetRand()
125 Random &Rand; variable
H A DFuzzerCorpus.h169 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate() argument
170 InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; in ChooseUnitToMutate()
176 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate() argument
177 size_t Idx = static_cast<size_t>(CorpusDistribution(Rand)); in ChooseUnitIdxToMutate()
H A DFuzzerDriver.cpp638 Random Rand(Seed); in FuzzerDriver() local
639 auto *MD = new MutationDispatcher(Rand, Options); in FuzzerDriver()
/freebsd-12.1/contrib/llvm/lib/FuzzMutate/
H A DIRMutator.cpp40 auto RS = makeSampler<Function *>(IB.Rand); in mutate()
48 mutate(*makeSampler(IB.Rand, make_pointer_range(F)).getSelection(), IB); in mutate()
52 mutate(*makeSampler(IB.Rand, make_pointer_range(BB)).getSelection(), IB); in mutate()
62 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand); in mutateModule()
101 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred)); in chooseOperation()
115 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate()
155 auto RS = makeSampler<Instruction *>(IB.Rand); in mutate()
186 auto RS = makeSampler<Value *>(IB.Rand); in mutate()
H A DRandomIRBuilder.cpp34 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource()
45 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()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator.h56 INLINE u32 Rand(u32 *state) { // ANSI C linear congruential PRNG. in Rand() function
60 INLINE u32 RandN(u32 *state, u32 n) { return Rand(state) % n; } // [0, n) in RandN()
/freebsd-12.1/contrib/llvm/include/llvm/FuzzMutate/
H A DRandomIRBuilder.h27 RandomEngine Rand; member
31 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
/freebsd-12.1/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp117 uint32_t Rand() { in Rand() function in llvm::__anoncf2486f60111::Random
126 uint64_t Val = Rand() & 0xffff; in Rand64()
127 Val |= uint64_t(Rand() & 0xffff) << 16; in Rand64()
128 Val |= uint64_t(Rand() & 0xffff) << 32; in Rand64()
129 Val |= uint64_t(Rand() & 0xffff) << 48; in Rand64()
145 uint32_t Val = Rand(); in operator ()()
201 return Ran->Rand(); in getRandom()
/freebsd-12.1/contrib/tcsh/nls/german/
H A Dset445 42 Zeilenumbruch am rechten Rand wird ignoriert
/freebsd-12.1/contrib/compiler-rt/lib/scudo/
H A Dscudo_tsd_shared.cpp74 const u32 R = Rand(&RandState); in getTSDAndLockSlow()
/freebsd-12.1/usr.bin/ee/nls/de_DE.ISO8859-1/
H A Dee.msg18 8 "rechter Rand "
122 112 "Rechter Rand: "
/freebsd-12.1/sys/contrib/edk2/Include/Library/
H A DBaseLib.h8870 OUT UINT16 *Rand
8887 OUT UINT32 *Rand
8904 OUT UINT64 *Rand
/freebsd-12.1/share/dict/
H A Dpropernames960 Rand
H A Dweb2163192 Rand
/freebsd-12.1/contrib/amd/
H A DAUTHORS254 * Douglas K. Rand" <rand AT aero.und.edu>
H A DChangeLog9781 name match. Bug fix from Douglas K. Rand" <[email protected]>.
/freebsd-12.1/contrib/sendmail/
H A DRELEASE_NOTES3975 it doesn't already exist. Problem noted by Rand Wacker of
9012 Unicos 8.0 from Douglas K. Rand of the University of North
/freebsd-12.1/share/termcap/
H A Dtermcap1064 # Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.
/freebsd-12.1/contrib/ncurses/misc/
H A Dterminfo.src12096 # Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.