Home
last modified time | relevance | path

Searched refs:RandomEngine (Results 1 – 25 of 37) sorted by relevance

12

/external/tensorflow/tensorflow/lite/kernels/internal/
Dtest_util.cc67 std::mt19937& RandomEngine() { in RandomEngine() function
74 return dist(RandomEngine()); in UniformRandomInt()
79 return dist(RandomEngine()); in UniformRandomFloat()
89 val = dist(RandomEngine()); in ExponentialRandomPositiveInt()
101 val = dist(RandomEngine()); in ExponentialRandomPositiveFloat()
109 auto gen = std::bind(dist, RandomEngine()); in FillRandom()
Dresize_bilinear_test.cc82 RandomEngine().seed(38291); in TEST_P()
101 RandomEngine().seed(96743); in TEST_P()
126 RandomEngine().seed(38291); in TEST_P()
151 RandomEngine().seed(38291); in TEST_P()
Dtest_util.h37 std::mt19937& RandomEngine();
70 auto gen = std::bind(dist, RandomEngine()); in FillRandom()
/external/libprotobuf-mutator/src/
Dweighted_reservoir_sampler.h31 template <class T, class RandomEngine = std::default_random_engine>
34 explicit WeightedReservoirSampler(RandomEngine* random) : random_(random) {} in WeightedReservoirSampler()
54 RandomEngine* random_;
Dweighted_reservoir_sampler_test.cc56 using RandomEngine = std::minstd_rand; in TEST_P() typedef
57 RandomEngine rand(std::get<0>(GetParam())); in TEST_P()
59 WeightedReservoirSampler<int, RandomEngine> sampler(&rand); in TEST_P()
Dmutator.cc65 size_t GetRandomIndex(RandomEngine* random, size_t count) { in GetRandomIndex()
72 void FlipBit(size_t size, uint8_t* bytes, RandomEngine* random) { in FlipBit()
79 T FlipBit(T value, RandomEngine* random) { in FlipBit()
85 bool GetRandomBool(RandomEngine* random, size_t n = 2) { in GetRandomBool()
183 RandomEngine* random) in MutationSampler()
285 RandomEngine* random_;
294 WeightedReservoirSampler<Result, RandomEngine> sampler_;
300 DataSourceSampler(const ConstFieldInstance& match, RandomEngine* random, in DataSourceSampler()
361 RandomEngine* random_;
364 WeightedReservoirSampler<ConstFieldInstance, RandomEngine> sampler_;
[all …]
Dutf8_fix.cc32 char* FixCode(char* b, const char* e, RandomEngine* random) { in FixCode()
83 void FixUtf8String(std::string* str, RandomEngine* random) { in FixUtf8String()
Dmutator.h90 RandomEngine* random() { return &random_; } in random()
103 RandomEngine random_;
Drandom.h22 using RandomEngine = std::minstd_rand; variable
Dutf8_fix.h24 void FixUtf8String(std::string* str, RandomEngine* random);
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_testspec.cc31 template <typename T, typename RandomEngine, typename RandomDistribution>
32 void GenerateCsv(const std::vector<int>& shape, RandomEngine* engine, in GenerateCsv()
39 template <typename RandomEngine>
41 RandomEngine* engine, const std::vector<string>& input_layer, in GenerateInputValues()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/
DRandomIRBuilder.h23 using RandomEngine = std::mt19937; variable
26 RandomEngine Rand;
/external/llvm-project/llvm/include/llvm/FuzzMutate/
DRandomIRBuilder.h23 using RandomEngine = std::mt19937; variable
26 RandomEngine Rand;
/external/gemmlowp/test/
Dtest.h95 inline std::mt19937& RandomEngine() { in RandomEngine() function
102 return dist(RandomEngine()); in Random()
126 (*m)(r, c) = dist(RandomEngine()); in MakeRandom()
/external/abseil-cpp/absl/strings/
Dcord_test.cc26 typedef std::mt19937_64 RandomEngine; typedef
28 static std::string RandomLowercaseString(RandomEngine* rng);
29 static std::string RandomLowercaseString(RandomEngine* rng, size_t length);
31 static int GetUniformRandomUpTo(RandomEngine* rng, int upper_bound) { in GetUniformRandomUpTo()
40 static size_t GetUniformRandomUpTo(RandomEngine* rng, size_t upper_bound) { in GetUniformRandomUpTo()
49 static int32_t GenerateSkewedRandom(RandomEngine* rng, int max_log) { in GenerateSkewedRandom()
55 static std::string RandomLowercaseString(RandomEngine* rng) { in RandomLowercaseString()
70 static std::string RandomLowercaseString(RandomEngine* rng, size_t length) { in RandomLowercaseString()
105 static size_t AppendWithFragments(const std::string& s, RandomEngine* rng, in AppendWithFragments()
330 RandomEngine rng(testing::GTEST_FLAG(random_seed)); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dcord_test.cc28 typedef std::mt19937_64 RandomEngine; typedef
30 static std::string RandomLowercaseString(RandomEngine* rng);
31 static std::string RandomLowercaseString(RandomEngine* rng, size_t length);
33 static int GetUniformRandomUpTo(RandomEngine* rng, int upper_bound) { in GetUniformRandomUpTo()
42 static size_t GetUniformRandomUpTo(RandomEngine* rng, size_t upper_bound) { in GetUniformRandomUpTo()
51 static int32_t GenerateSkewedRandom(RandomEngine* rng, int max_log) { in GenerateSkewedRandom()
57 static std::string RandomLowercaseString(RandomEngine* rng) { in RandomLowercaseString()
72 static std::string RandomLowercaseString(RandomEngine* rng, size_t length) { in RandomLowercaseString()
106 static size_t AppendWithFragments(const std::string& s, RandomEngine* rng, in AppendWithFragments()
331 RandomEngine rng(testing::GTEST_FLAG(random_seed)); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/strings/
Dcord_test.cc28 typedef std::mt19937_64 RandomEngine; typedef
30 static std::string RandomLowercaseString(RandomEngine* rng);
31 static std::string RandomLowercaseString(RandomEngine* rng, size_t length);
33 static int GetUniformRandomUpTo(RandomEngine* rng, int upper_bound) { in GetUniformRandomUpTo()
42 static size_t GetUniformRandomUpTo(RandomEngine* rng, size_t upper_bound) { in GetUniformRandomUpTo()
51 static int32_t GenerateSkewedRandom(RandomEngine* rng, int max_log) { in GenerateSkewedRandom()
57 static std::string RandomLowercaseString(RandomEngine* rng) { in RandomLowercaseString()
72 static std::string RandomLowercaseString(RandomEngine* rng, size_t length) { in RandomLowercaseString()
106 static size_t AppendWithFragments(const std::string& s, RandomEngine* rng, in AppendWithFragments()
331 RandomEngine rng(testing::GTEST_FLAG(random_seed)); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dcord_test.cc26 typedef std::mt19937_64 RandomEngine; typedef
28 static std::string RandomLowercaseString(RandomEngine* rng);
29 static std::string RandomLowercaseString(RandomEngine* rng, size_t length);
31 static int GetUniformRandomUpTo(RandomEngine* rng, int upper_bound) { in GetUniformRandomUpTo()
40 static size_t GetUniformRandomUpTo(RandomEngine* rng, size_t upper_bound) { in GetUniformRandomUpTo()
49 static int32_t GenerateSkewedRandom(RandomEngine* rng, int max_log) { in GenerateSkewedRandom()
55 static std::string RandomLowercaseString(RandomEngine* rng) { in RandomLowercaseString()
70 static std::string RandomLowercaseString(RandomEngine* rng, size_t length) { in RandomLowercaseString()
105 static size_t AppendWithFragments(const std::string& s, RandomEngine* rng, in AppendWithFragments()
330 RandomEngine rng(testing::GTEST_FLAG(random_seed)); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/strings/
Dcord_test.cc42 typedef std::mt19937_64 RandomEngine; typedef
44 static std::string RandomLowercaseString(RandomEngine* rng);
45 static std::string RandomLowercaseString(RandomEngine* rng, size_t length);
47 static int GetUniformRandomUpTo(RandomEngine* rng, int upper_bound) { in GetUniformRandomUpTo()
56 static size_t GetUniformRandomUpTo(RandomEngine* rng, size_t upper_bound) { in GetUniformRandomUpTo()
65 static int32_t GenerateSkewedRandom(RandomEngine* rng, int max_log) { in GenerateSkewedRandom()
71 static std::string RandomLowercaseString(RandomEngine* rng) { in RandomLowercaseString()
86 static std::string RandomLowercaseString(RandomEngine* rng, size_t length) { in RandomLowercaseString()
120 static size_t AppendWithFragments(const std::string& s, RandomEngine* rng, in AppendWithFragments()
347 RandomEngine rng(testing::GTEST_FLAG(random_seed)); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/
Dcord_test.cc43 typedef std::mt19937_64 RandomEngine; typedef
45 static std::string RandomLowercaseString(RandomEngine* rng);
46 static std::string RandomLowercaseString(RandomEngine* rng, size_t length);
48 static int GetUniformRandomUpTo(RandomEngine* rng, int upper_bound) { in GetUniformRandomUpTo()
57 static size_t GetUniformRandomUpTo(RandomEngine* rng, size_t upper_bound) { in GetUniformRandomUpTo()
66 static int32_t GenerateSkewedRandom(RandomEngine* rng, int max_log) { in GenerateSkewedRandom()
72 static std::string RandomLowercaseString(RandomEngine* rng) { in RandomLowercaseString()
87 static std::string RandomLowercaseString(RandomEngine* rng, size_t length) { in RandomLowercaseString()
121 static size_t AppendWithFragments(const std::string& s, RandomEngine* rng, in AppendWithFragments()
364 RandomEngine rng(testing::GTEST_FLAG(random_seed)); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/synchronization/internal/
Dgraphcycles_test.cc40 using RandomEngine = std::mt19937_64; typedef
169 static int RandomNode(RandomEngine* rng, Nodes *nodes) { in RandomNode()
176 static int RandomEdge(RandomEngine* rng, Edges *edges) { in RandomEdge()
201 RandomEngine rng(testing::UnitTest::GetInstance()->random_seed()); in TEST()
/external/libtextclassifier/abseil-cpp/absl/synchronization/internal/
Dgraphcycles_test.cc40 using RandomEngine = std::mt19937_64; typedef
169 static int RandomNode(RandomEngine* rng, Nodes *nodes) { in RandomNode()
176 static int RandomEdge(RandomEngine* rng, Edges *edges) { in RandomEdge()
201 RandomEngine rng(testing::UnitTest::GetInstance()->random_seed()); in TEST()
/external/abseil-cpp/absl/synchronization/internal/
Dgraphcycles_test.cc40 using RandomEngine = std::mt19937_64; typedef
169 static int RandomNode(RandomEngine* rng, Nodes *nodes) { in RandomNode()
176 static int RandomEdge(RandomEngine* rng, Edges *edges) { in RandomEdge()
201 RandomEngine rng(testing::UnitTest::GetInstance()->random_seed()); in TEST()
/external/webrtc/third_party/abseil-cpp/absl/synchronization/internal/
Dgraphcycles_test.cc40 using RandomEngine = std::mt19937_64; typedef
169 static int RandomNode(RandomEngine* rng, Nodes *nodes) { in RandomNode()
176 static int RandomEdge(RandomEngine* rng, Edges *edges) { in RandomEdge()
201 RandomEngine rng(testing::UnitTest::GetInstance()->random_seed()); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/synchronization/internal/
Dgraphcycles_test.cc40 using RandomEngine = std::mt19937_64; typedef
169 static int RandomNode(RandomEngine* rng, Nodes *nodes) { in RandomNode()
176 static int RandomEdge(RandomEngine* rng, Edges *edges) { in RandomEdge()
201 RandomEngine rng(testing::UnitTest::GetInstance()->random_seed()); in TEST()

12