/external/llvm/lib/Fuzzer/ |
D | FuzzerMutate.cpp | 21 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher() argument 23 : Rand(Rand), Options(Options) { in MutationDispatcher() 52 static char FlipRandomBit(char X, Random &Rand) { in FlipRandomBit() argument 53 int Bit = Rand(8); in FlipRandomBit() 64 static char RandCh(Random &Rand) { in RandCh() argument 65 if (Rand.RandBool()) return Rand(256); in RandCh() 67 return Special[Rand(sizeof(Special) - 1)]; in RandCh() 72 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom() 79 size_t Idx = Rand(Corpus->size()); in Mutate_CustomCrossOver() 86 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver() [all …]
|
D | FuzzerCrossOver.cpp | 23 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver() 37 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
|
/external/webrtc/webrtc/base/ |
D | random.cc | 23 uint32_t Random::Rand(uint32_t t) { in Rand() function in webrtc::Random 36 uint32_t Random::Rand(uint32_t low, uint32_t high) { in Rand() function in webrtc::Random 38 return Rand(high - low) + low; in Rand() 41 int32_t Random::Rand(int32_t low, int32_t high) { in Rand() function in webrtc::Random 47 return Rand(high - low) + low; in Rand() 51 float Random::Rand<float>() { in Rand() function in webrtc::Random 58 double Random::Rand<double>() { in Rand() function in webrtc::Random 65 bool Random::Rand<bool>() { in Rand() function in webrtc::Random 66 return Rand(0, 1) == 1; in Rand() 82 double uniform = Rand<double>(); in Exponential()
|
D | random.h | 29 T Rand() { in Rand() function 39 uint32_t Rand(uint32_t t); 42 uint32_t Rand(uint32_t low, uint32_t high); 45 int32_t Rand(int32_t low, int32_t high); 70 float Random::Rand<float>(); 74 double Random::Rand<double>(); 78 bool Random::Rand<bool>();
|
D | random_unittest.cc | 54 sample = prng->Rand<T>(); in UniformBucketTest() 134 int32_t sample = prng->Rand(low, high); in BucketTestSignedInterval() 174 uint32_t sample = prng->Rand(low, high); in BucketTestUnsignedInterval() 226 uint32_t sample = bucket_count * prng->Rand<float>(); in BucketTestFloat() 252 signed int s = prng_signed.Rand<signed int>(); in TEST() 253 unsigned int u = prng_unsigned.Rand<unsigned int>(); in TEST() 258 int16_t s = prng_signed.Rand<int16_t>(); in TEST() 259 uint16_t u = prng_unsigned.Rand<uint16_t>(); in TEST() 264 signed char s = prng_signed.Rand<signed char>(); in TEST() 265 unsigned char u = prng_unsigned.Rand<unsigned char>(); in TEST()
|
/external/webrtc/webrtc/call/ |
D | rtc_event_log_unittest.cc | 320 csrcs.push_back(prng->Rand<uint32_t>()); in GenerateRtpPacket() 323 rtp_sender.SetSSRC(prng->Rand<uint32_t>()); in GenerateRtpPacket() 324 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true); in GenerateRtpPacket() 325 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>()); in GenerateRtpPacket() 333 int8_t payload_type = prng->Rand(0, 127); in GenerateRtpPacket() 334 bool marker_bit = prng->Rand<bool>(); in GenerateRtpPacket() 335 uint32_t capture_timestamp = prng->Rand<uint32_t>(); in GenerateRtpPacket() 336 int64_t capture_time_ms = prng->Rand<uint32_t>(); in GenerateRtpPacket() 337 bool timestamp_provided = prng->Rand<bool>(); in GenerateRtpPacket() 338 bool inc_sequence_number = prng->Rand<bool>(); in GenerateRtpPacket() [all …]
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 91 uint32_t Rand() { in Rand() function in llvm::__anon4119587c0111::Random 100 uint32_t Val = Rand(); in Rand32() 102 return Val | (Rand() << 16); in Rand32() 167 return PT->at(Ran->Rand() % PT->size()); in getRandomVal() 172 if (Ran->Rand() & 1) in getRandomConstant() 176 if (Ran->Rand() & 1) in getRandomConstant() 185 unsigned index = Ran->Rand(); in getRandomValue() 194 if (Ran->Rand() & 1) in getRandomValue() 198 if (Ran->Rand() & 1) in getRandomValue() 218 unsigned index = Ran->Rand(); in getRandomPointerValue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/ |
D | ReservoirSamplerTest.cpp | 17 std::mt19937 Rand; in TEST() local 18 auto Sampler = makeSampler(Rand, 7, 1); in TEST() 24 std::mt19937 Rand; in TEST() local 25 auto Sampler = makeSampler(Rand, 7, 0); in TEST() 30 std::mt19937 Rand; in TEST() local 44 auto Sampler = makeSampler(Rand, Items); in TEST()
|
/external/llvm/lib/Fuzzer/test/ |
D | FuzzerUnittest.cpp | 24 Random Rand(0); in TEST() local 25 MutationDispatcher MD(Rand, {}); in TEST() 102 Random Rand(0); in TestEraseByte() local 103 MutationDispatcher MD(Rand, {}); in TestEraseByte() 130 Random Rand(0); in TestInsertByte() local 131 MutationDispatcher MD(Rand, {}); in TestInsertByte() 166 Random Rand(0); in TestChangeByte() local 167 MutationDispatcher MD(Rand, {}); in TestChangeByte() 202 Random Rand(0); in TestChangeBit() local 203 MutationDispatcher MD(Rand, {}); in TestChangeBit() [all …]
|
/external/syzkaller/pkg/ifuzz/ |
D | pseudo.go | 16 generator: func(cfg *Config, r *rand.Rand) []byte { 29 generator: func(cfg *Config, r *rand.Rand) []byte { 45 generator: func(cfg *Config, r *rand.Rand) []byte { 58 generator: func(cfg *Config, r *rand.Rand) []byte { 72 generator: func(cfg *Config, r *rand.Rand) []byte { 84 generator: func(cfg *Config, r *rand.Rand) []byte { 97 generator: func(cfg *Config, r *rand.Rand) []byte { 118 generator: func(cfg *Config, r *rand.Rand) []byte { 133 generator: func(cfg *Config, r *rand.Rand) []byte { 156 generator: func(cfg *Config, r *rand.Rand) []byte { [all …]
|
D | ifuzz.go | 54 generator func(cfg *Config, r *rand.Rand) []byte // for pseudo instructions 125 func Generate(cfg *Config, r *rand.Rand) []byte { argument 135 func Mutate(cfg *Config, r *rand.Rand, text []byte) []byte { argument 200 func randInsn(cfg *Config, r *rand.Rand) *Insn { argument 236 func generateArg(cfg *Config, r *rand.Rand, size int) []byte { argument 262 func generateInt(cfg *Config, r *rand.Rand, size int) uint64 { argument
|
/external/webrtc/webrtc/modules/rtp_rtcp/test/testFec/ |
D | test_fec.cc | 54 float randomVariable = random->Rand<float>(); in ReceivePackets() 61 randomVariable = random->Rand<float>(); in ReceivePackets() 67 randomVariable = random->Rand<float>(); in ReceivePackets() 78 randomVariable = random->Rand<float>(); in ReceivePackets() 137 uint32_t timeStamp = random.Rand<uint32_t>(); in TEST() 138 const uint32_t ssrc = random.Rand(1u, 0xfffffffe); in TEST() 235 mediaPacket->length = random.Rand(kMinPacketSize, kMaxPacketSize); in TEST() 238 mediaPacket->data[0] = random.Rand<uint8_t>(); in TEST() 239 mediaPacket->data[1] = random.Rand<uint8_t>(); in TEST() 264 mediaPacket->data[j] = random.Rand<uint8_t>(); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/ |
D | IRMutator.cpp | 40 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() 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()
|
D | RandomIRBuilder.cpp | 34 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()
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | shape_partition_test.cc | 154 std::vector<int64> RandR4Dims() { return {Rand(), Rand(), Rand(), Rand()}; } in RandR4Dims() 156 int64 Rand() { return distribution_(generator_); } in Rand() function in xla::cpu::__anond14004300111::RandomShapePartitionIteratorTest 167 const int num_outer_dims_to_partition = 1 + (Rand() % 3); in TEST_F() 178 const int64 dim_partition_count = 1 + Rand() % dim_sizes[i]; in TEST_F()
|
/external/syzkaller/sys/linux/ |
D | init_alg.go | 24 algType, algName := generateAlgName(g.Rand()) 40 return generateAlgNameStruct(g, typ, allTypes[g.Rand().Intn(len(allTypes))].typ) 60 algName := generateAlg(g.Rand(), algTyp) 68 func generateAlgName(rnd *rand.Rand) (string, string) { argument 74 func generateAlg(rnd *rand.Rand, typ int) string { argument 80 func generateAlgImpl(rnd *rand.Rand, alg algDesc) string { argument
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | bwe_simulations.cc | 253 i * prng.Rand(39999))); in TEST_P() 284 offsets_ms[0] = random_.Rand(2 * kAverageOffsetMs); in TEST_P() 286 offsets_ms[i] = offsets_ms[i - 1] + random_.Rand(2 * kAverageOffsetMs); in TEST_P() 296 offsets_ms[0] = random_.Rand(2 * kAverageOffsetMs); in TEST_P() 298 offsets_ms[i] = offsets_ms[i - 1] + random_.Rand(2 * kAverageOffsetMs); in TEST_P() 308 offsets_ms[0] = random_.Rand(2 * kAverageOffsetMs); in TEST_P() 310 offsets_ms[i] = offsets_ms[i - 1] + random_.Rand(2 * kAverageOffsetMs); in TEST_P() 317 int64_t offset_ms[] = {random_.Rand(2 * kAverageOffsetMs), 0}; in TEST_P() 323 int64_t offset_ms[] = {random_.Rand(2 * kAverageOffsetMs), 0}; in TEST_P() 329 int64_t offset_ms[] = {random_.Rand(2 * kAverageOffsetMs), 0}; in TEST_P()
|
D | remote_bitrate_estimators_test.cc | 363 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P() 377 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P() 391 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P() 404 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P() 417 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P() 430 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P()
|
/external/tensorflow/tensorflow/contrib/recurrent/python/kernel_tests/ |
D | recurrent_test.py | 95 def Rand(shape): member in RecurrentTest 150 theta = _ElmanTheta(w=RecurrentTest.Rand([2 * dims, dims]), 151 b=RecurrentTest.Rand([dims])) 152 state0 = _ElmanState(h=RecurrentTest.Rand([batch, dims])) 153 inputs = _ElmanInputs(x=RecurrentTest.Rand([seqlen, batch, dims]))
|
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/ |
D | NonBlockingThreadPool.h | 84 Queue* q = queues_[Rand(&pt->rand) % queues_.size()]; in Schedule() 176 unsigned r = Rand(&pt->rand); in Steal() 240 unsigned r = Rand(&pt->rand); in NonEmptyQueueIndex() 261 static EIGEN_STRONG_INLINE unsigned Rand(uint64_t* state) { in Rand() function
|
/external/syzkaller/vendor/google.golang.org/grpc/credentials/ |
D | credentials_util_pre_go17.go | 37 Rand: cfg.Rand,
|
D | credentials_util_go17.go | 38 Rand: cfg.Rand,
|
/external/libvpx/libvpx/test/ |
D | hadamard_test.cc | 140 virtual int16_t Rand() = 0; 162 for (int i = 0; i < block_size_; ++i) a[i] = Rand(); in CompareReferenceRandom() 178 for (int i = 0; i < block_size_ * 8; ++i) a[i] = Rand(); in VaryStride() 223 virtual int16_t Rand() { return rnd_.Rand9Signed(); } in Rand() function in __anon03c2fb560111::HadamardLowbdTest 291 virtual int16_t Rand() { return rnd_.Rand13Signed(); } in Rand() function in __anon03c2fb560111::HadamardHighbdTest
|
/external/syzkaller/vendor/golang.org/x/net/http2/ |
D | go17_not18.go | 14 Rand: c.Rand,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/FuzzMutate/ |
D | RandomIRBuilder.h | 27 RandomEngine Rand; member 31 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
|