Home
last modified time | relevance | path

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

12

/netbsd/sys/external/bsd/compiler_rt/dist/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.cpp642 Random Rand(Seed); in FuzzerDriver() local
643 auto *MD = new MutationDispatcher(Rand, Options); in FuzzerDriver()
/netbsd/sys/external/bsd/compiler_rt/dist/lib/fuzzer/tests/
H A DFuzzerUnittest.cpp49 Random Rand(0); in TEST() local
137 Random Rand(0); in TestEraseBytes() local
173 Random Rand(0); in TestInsertByte() local
209 Random Rand(0); in TestInsertRepeatedBytes() local
253 Random Rand(0); in TestChangeByte() local
289 Random Rand(0); in TestChangeBit() local
325 Random Rand(0); in TestShuffleBytes() local
355 Random Rand(0); in TestCopyPart() local
405 Random Rand(0); in TEST() local
418 Random Rand(0); in TestAddWordFromDictionary() local
[all …]
/netbsd/external/apache2/llvm/dist/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()
239 auto RS = makeSampler(IB.Rand, Modifications); 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()
/netbsd/tests/crypto/libcrypto/bn/div/
H A Ddivtest.c4 static int Rand(void) in Rand() function
32 BN_pseudo_rand(a, Rand(), 0, 0); in main()
33 BN_pseudo_rand(b, Rand(), 0, 0); in main()
/netbsd/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_allocator.h52 INLINE u32 Rand(u32 *state) { // ANSI C linear congruential PRNG. in Rand() function
56 INLINE u32 RandN(u32 *state, u32 n) { return Rand(state) % n; } // [0, n) in RandN()
/netbsd/sys/external/bsd/compiler_rt/dist/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()
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_allocator.h52 INLINE u32 Rand(u32 *state) { // ANSI C linear congruential PRNG. in Rand() function
56 INLINE u32 RandN(u32 *state, u32 n) { return Rand(state) % n; } // [0, n) in RandN()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/
H A DRandomIRBuilder.h26 RandomEngine Rand; member
30 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp115 uint32_t Rand() { in Rand() function in llvm::__anon42a610320111::Random
124 uint64_t Val = Rand() & 0xffff; in Rand64()
125 Val |= uint64_t(Rand() & 0xffff) << 16; in Rand64()
126 Val |= uint64_t(Rand() & 0xffff) << 32; in Rand64()
127 Val |= uint64_t(Rand() & 0xffff) << 48; in Rand64()
143 uint32_t Val = Rand(); in operator ()()
199 return Ran->Rand(); in getRandom()
/netbsd/external/lgpl3/gmp/dist/demos/perl/GMP/
H A DRand.pm32 package GMP::Rand;
/netbsd/external/lgpl3/gmp/dist/demos/perl/
H A DGMP.xs3067 MODULE = GMP PACKAGE = GMP::Rand
3072 GMP::Rand::randstate = 1
3157 GMP::Rand::mpz_rrandomb = 1
3200 GMP::Rand::gmp_urandomm_ui = 1
H A Dtest.pl59 use GMP::Rand qw(:all);
/netbsd/share/dict/
H A Dpropernames976 Rand
/netbsd/crypto/external/bsd/openssl/dist/doc/man7/
H A Dprovider-rand.pod152 =head2 Rand Parameters
/netbsd/external/bsd/am-utils/dist/
H A DAUTHORS254 * Douglas K. Rand" <rand AT aero.und.edu>
/netbsd/games/fortune/datfiles/
H A Dstartrek749 -- Kirk to Yeoman Rand, "The Enemy Within", stardate unknown
H A Dfortunes23016 -- Ayn Rand, "The Fountainhead"
8299 According to the Rand McNally Places-Rated Almanac, the best place to live in
28425 Kirk to Enterprise -- beam down yeoman Rand and a six-pack.
32720 -- sign in the Rand Hotel, New York, 1907
36521 Kirk, Spock, Bones, Yeoman Rand and two red shirt security officers
36524 As something begins to develop between the Captain and Yeoman Rand,
39427 -- Ayn Rand
48908 -- Robert D. Sprecht, Rand Corp.
54156 -- Ayn Rand
H A Dfortunes818 According to the Rand McNally Places-Rated Almanac, the best place to
7989 Kirk to Enterprise -- beam down yeoman Rand and a six-pack.
/netbsd/external/lgpl3/gmp/dist/
H A DChangeLog17712 * demos/perl/GMP.xs, demos/perl/GMP.pm, demos/perl/GMP/Rand.pm,
17714 (GMP::Rand::randstate): Accept a randstate object to copy.
18796 to GMP::Rand::randstate.
24251 GMP/Mpz.pm, GMP/Mpq.pm, GMP/mpf.pm, GMP/Rand.pm, sample.pl, test.pl:

12