Home
last modified time | relevance | path

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

12

/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
HDFuzzerMutate.cpp26 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher() argument
28 : Rand(Rand), Options(Options) { in MutationDispatcher()
62 static char RandCh(Random &Rand) { in RandCh() argument
63 if (Rand.RandBool()) return Rand(256); in RandCh()
65 return Special[Rand(sizeof(Special) - 1)]; in RandCh()
70 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom()
84 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver()
96 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes()
97 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes()
99 std::shuffle(Data + ShuffleStart, Data + ShuffleStart + ShuffleAmount, Rand); in Mutate_ShuffleBytes()
[all …]
HDFuzzerRandom.h21 size_t Rand() { return this->operator()(); } in Rand() function
22 size_t RandBool() { return Rand() % 2; } in RandBool()
28 size_t operator()(size_t n) { return n ? Rand() % n : 0; } in operator()
HDFuzzerCrossOver.cpp23 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver()
37 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
HDFuzzerMutate.h23 MutationDispatcher(Random &Rand, const FuzzingOptions &Options);
93 Random &GetRand() { return Rand; } in GetRand()
124 Random &Rand; variable
HDFuzzerFork.cpp98 Random *Rand; member
140 auto &SF = Files[Rand->SkewTowardsLast(Files.size())]; in CreateNewJob()
283 void FuzzWithFork(Random &Rand, const FuzzingOptions &Options, in FuzzWithFork() argument
291 Env.Rand = &Rand; in FuzzWithFork()
HDFuzzerCorpus.h170 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate() argument
171 InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; in ChooseUnitToMutate()
177 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate() argument
178 size_t Idx = static_cast<size_t>(CorpusDistribution(Rand)); in ChooseUnitIdxToMutate()
HDFuzzerFork.h19 void FuzzWithFork(Random &Rand, const FuzzingOptions &Options,
HDFuzzerDataFlowTrace.cpp161 Vector<SizedFile> &CorporaFiles, Random &Rand) { in Init() argument
197 FocusFuncIdx = static_cast<size_t>(Distribution(Rand)); in Init()
HDFuzzerDataFlowTrace.h118 Vector<SizedFile> &CorporaFiles, Random &Rand);
HDFuzzerDriver.cpp732 Random Rand(Seed); in FuzzerDriver() local
733 auto *MD = new MutationDispatcher(Rand, Options); in FuzzerDriver()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/FuzzMutate/
HDIRMutator.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()
HDRandomIRBuilder.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()
/freebsd-11-stable/crypto/openssl/crypto/bn/
HDdivtest.c4 static int Rand(n) in Rand() function
29 BN_pseudo_rand(a, Rand(), 0, 0); in main()
30 BN_pseudo_rand(b, Rand(), 0, 0); in main()
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_allocator.h55 INLINE u32 Rand(u32 *state) { // ANSI C linear congruential PRNG. in Rand() function
59 INLINE u32 RandN(u32 *state, u32 n) { return Rand(state) % n; } // [0, n) in RandN()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
HDRandomIRBuilder.h26 RandomEngine Rand; member
30 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-stress/
HDllvm-stress.cpp116 uint32_t Rand() { in Rand() function in llvm::__anon0e3df9e80111::Random
125 uint64_t Val = Rand() & 0xffff; in Rand64()
126 Val |= uint64_t(Rand() & 0xffff) << 16; in Rand64()
127 Val |= uint64_t(Rand() & 0xffff) << 32; in Rand64()
128 Val |= uint64_t(Rand() & 0xffff) << 48; in Rand64()
144 uint32_t Val = Rand(); in operator ()()
200 return Ran->Rand(); in getRandom()
/freebsd-11-stable/contrib/tcsh/nls/german/
HDset444 42 Zeilenumbruch am rechten Rand wird ignoriert
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/
HDscudo_tsd_shared.cpp73 const u32 R = Rand(&RandState); in getTSDAndLockSlow()
/freebsd-11-stable/usr.bin/ee/nls/de_DE.ISO8859-1/
HDee.msg18 8 "rechter Rand "
122 112 "Rechter Rand: "
/freebsd-11-stable/sys/contrib/edk2/Include/Library/
HDBaseLib.h8870 OUT UINT16 *Rand
8887 OUT UINT32 *Rand
8904 OUT UINT64 *Rand
/freebsd-11-stable/share/dict/
HDpropernames960 Rand
/freebsd-11-stable/contrib/amd/
HDAUTHORS254 * Douglas K. Rand" <rand AT aero.und.edu>
/freebsd-11-stable/usr.bin/fortune/datfiles/
HDstartrek754 -- Kirk to Yeoman Rand, "The Enemy Within", stardate unknown
HDfortunes3069 -- Ayn Rand, "The Fountainhead"
8300 According to the Rand McNally Places-Rated Almanac, the best place to live in
30032 Kirk to Enterprise -- beam down yeoman Rand and a six-pack.
34558 -- sign in the Rand Hotel, New York, 1907
38611 Kirk, Spock, Bones, Yeoman Rand and two red shirt security officers
38614 As something begins to develop between the Captain and Yeoman Rand,
41726 -- Ayn Rand
52102 -- Robert D. Sprecht, Rand Corp.
57654 -- Ayn Rand
/freebsd-11-stable/contrib/sendmail/
HDRELEASE_NOTES4093 it doesn't already exist. Problem noted by Rand Wacker of
9130 Unicos 8.0 from Douglas K. Rand of the University of North

12