| /openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerMutate.cpp | 27 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher() argument 29 : Rand(Rand), Options(Options) { in MutationDispatcher() 63 static char RandCh(Random &Rand) { in RandCh() argument 64 if (Rand.RandBool()) in RandCh() 65 return static_cast<char>(Rand(256)); in RandCh() 67 return Special[Rand(sizeof(Special) - 1)]; in RandCh() 77 Rand.Rand<unsigned int>()); in Mutate_Custom() 100 Rand.Rand<unsigned int>()); in Mutate_CustomCrossOver() 113 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes() 114 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes() [all …]
|
| H A D | FuzzerCorpus.h | 302 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate() argument 303 InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; in ChooseUnitToMutate() 308 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith() argument 310 return ChooseUnitToMutate(Rand); in ChooseUnitToCrossOverWith() 312 InputInfo &II = *Inputs[Rand(Inputs.size())]; in ChooseUnitToCrossOverWith() 318 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate() argument 319 UpdateCorpusDistribution(Rand); in ChooseUnitIdxToMutate() 320 size_t Idx = static_cast<size_t>(CorpusDistribution(Rand)); in ChooseUnitIdxToMutate() 495 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution() argument 500 (!Entropic.Enabled || Rand(kSparseEnergyUpdates))) in UpdateCorpusDistribution()
|
| H A D | FuzzerCrossOver.cpp | 23 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver() 37 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
|
| H A D | FuzzerRandom.h | 22 typename std::enable_if<std::is_integral<T>::value, T>::type Rand() { in Rand() function 33 return n ? Rand<T>() % n : 0; in operator()
|
| H A D | FuzzerFork.cpp | 99 Random *Rand; member 146 size_t RandNum = (*Rand)(AverageCorpusSize); in CreateNewJob() 149 : Rand->SkewTowardsLast(Files.size()); in CreateNewJob() 156 auto &SF = Files[Rand->SkewTowardsLast(Files.size())]; in CreateNewJob() 312 void FuzzWithFork(Random &Rand, const FuzzingOptions &Options, in FuzzWithFork() argument 320 Env.Rand = &Rand; in FuzzWithFork()
|
| H A D | FuzzerMutate.h | 23 MutationDispatcher(Random &Rand, const FuzzingOptions &Options); 96 Random &GetRand() { return Rand; } in GetRand() 127 Random &Rand; variable
|
| H A D | FuzzerFork.h | 19 void FuzzWithFork(Random &Rand, const FuzzingOptions &Options,
|
| H A D | FuzzerDataFlowTrace.cpp | 162 std::vector<SizedFile> &CorporaFiles, Random &Rand) { in Init() argument 198 FocusFuncIdx = static_cast<size_t>(Distribution(Rand)); in Init()
|
| H A D | FuzzerDataFlowTrace.h | 120 std::vector<SizedFile> &CorporaFiles, Random &Rand);
|
| H A D | FuzzerDriver.cpp | 810 Random Rand(Seed); in FuzzerDriver() local 811 auto *MD = new MutationDispatcher(Rand, Options); in FuzzerDriver()
|
| /openbsd-src/gnu/llvm/llvm/lib/FuzzMutate/ |
| H A D | IRMutator.cpp | 45 auto RS = makeSampler<Function *>(IB.Rand); in mutate() 57 mutate(*makeSampler(IB.Rand, make_pointer_range(F)).getSelection(), IB); in mutate() 61 mutate(*makeSampler(IB.Rand, make_pointer_range(BB)).getSelection(), IB); in mutate() 71 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand); in mutateModule() 110 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred)); in chooseOperation() 124 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate() 167 auto RS = makeSampler<Instruction *>(IB.Rand); in mutate() 198 auto RS = makeSampler<Value *>(IB.Rand); in mutate() 335 auto RS = makeSampler(IB.Rand, Modifications); in mutate() 346 tmp = uniform<uint64_t>(IB.Rand, 0, MaxValue); in getUniqueCaseValue() [all …]
|
| H A D | RandomIRBuilder.cpp | 35 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource() 47 auto RS = makeSampler<Value *>(Rand); in newSource() 130 auto RS = makeSampler<Use *>(Rand); in connectToSink() 157 if (uniform(Rand, 0, 1)) in newSink() 189 if (auto RS = makeSampler(Rand, make_filter_range(Insts, IsMatchingPtr))) in findPointer() 195 uint64_t TyIdx = uniform<uint64_t>(Rand, 0, KnownTypes.size() - 1); in randomType()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/ |
| H A D | debug1.C | 12 template<class Par,class Rand = arrrrrgh> 22 template<class Par, class Par2 =Par, class Rand =arrrrrgh> 29 no_future(const grrrrrrrr<whyyyyyyy<Par,Rand>*,S>& man ) { } in no_future() argument
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.robertl/ |
| H A D | 980310-1.C | 13 template<class Par,class Rand = arrrrrgh> 19 template<class Par, class Par2 =Par, class Rand =arrrrrgh> 25 no_future(const grrrrrrrr<whyyyyyyy<Par,Rand>*,S>& man ) { } in no_future() argument
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/tests/ |
| H A D | FuzzerUnittest.cpp | 51 Random Rand(0); in TEST() local 52 std::unique_ptr<MutationDispatcher> MD(new MutationDispatcher(Rand, {})); in TEST() 139 Random Rand(0); in TestEraseBytes() local 140 std::unique_ptr<MutationDispatcher> MD(new MutationDispatcher(Rand, {})); in TestEraseBytes() 175 Random Rand(0); in TestInsertByte() local 176 std::unique_ptr<MutationDispatcher> MD(new MutationDispatcher(Rand, {})); in TestInsertByte() 211 Random Rand(0); in TestInsertRepeatedBytes() local 212 std::unique_ptr<MutationDispatcher> MD(new MutationDispatcher(Rand, {})); in TestInsertRepeatedBytes() 256 Random Rand(0); in TestChangeByte() local 257 std::unique_ptr<MutationDispatcher> MD(new MutationDispatcher(Rand, {})); in TestChangeByte() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator.h | 50 inline u32 Rand(u32 *state) { // ANSI C linear congruential PRNG. in Rand() function 54 inline u32 RandN(u32 *state, u32 n) { return Rand(state) % n; } // [0, n) in RandN()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/FuzzMutate/ |
| H A D | RandomIRBuilder.h | 33 RandomEngine Rand; member 37 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 93 uint32_t Rand() { in Rand() function in llvm::__anoncd242c280111::Random 102 uint64_t Val = Rand() & 0xffff; in Rand64() 103 Val |= uint64_t(Rand() & 0xffff) << 16; in Rand64() 104 Val |= uint64_t(Rand() & 0xffff) << 32; in Rand64() 105 Val |= uint64_t(Rand() & 0xffff) << 48; in Rand64() 121 uint32_t Val = Rand(); in operator ()() 208 return Ran->Rand(); in getRandom()
|
| /openbsd-src/usr.bin/vi/docs/ |
| H A D | features | 66 key. (Simulate the Rand editor?)
|
| /openbsd-src/share/dict/ |
| H A D | propernames | 970 Rand
|
| /openbsd-src/games/fortune/datfiles/ |
| H A D | startrek | 753 -- Kirk to Yeoman Rand, "The Enemy Within", stardate unknown
|
| H A D | fortunes2 | 2845 -- Ayn Rand, "The Fountainhead" 7648 According to the Rand McNally Places-Rated Almanac, the best place to live in 27772 -- sign in the Rand Hotel, New York, 1907 30874 Kirk, Spock, Bones, Yeoman Rand and two red shirt security officers 30877 As something begins to develop between the Captain and Yeoman Rand, 33390 -- Ayn Rand 41575 -- Robert D. Sprecht, Rand Corp. 46118 -- Ayn Rand
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/f/ |
| H A D | intrin.def | 334 DEFNAME ("RAND", "rand", "Rand", genNONE, specRAND) /* UNIX */
|
| H A D | intdoc.in | 1590 @xref{Rand Intrinsic}.
|
| H A D | news.texi | 641 to the @code{Rand} intrinsic on some systems.
|