Home
last modified time | relevance | path

Searched refs:RandomGenerator (Results 1 – 25 of 57) sorted by relevance

123

/third_party/skia/third_party/externals/tint/fuzzers/
Drandom_generator.cc48 RandomGenerator::RandomGenerator(std::unique_ptr<RandomGeneratorEngine> engine) in RandomGenerator() function in tint::fuzzers::RandomGenerator
51 RandomGenerator::RandomGenerator(uint64_t seed) in RandomGenerator() function in tint::fuzzers::RandomGenerator
52 : RandomGenerator(std::make_unique<MersenneTwisterEngine>(seed)) {} in RandomGenerator()
54 uint32_t RandomGenerator::GetUInt32(uint32_t lower, uint32_t upper) { in GetUInt32()
59 uint32_t RandomGenerator::GetUInt32(uint32_t bound) { in GetUInt32()
64 uint64_t RandomGenerator::GetUInt64(uint64_t lower, uint64_t upper) { in GetUInt64()
69 uint64_t RandomGenerator::GetUInt64(uint64_t bound) { in GetUInt64()
74 uint8_t RandomGenerator::GetByte() { in GetByte()
80 uint32_t RandomGenerator::Get4Bytes() { in Get4Bytes()
86 void RandomGenerator::GetNBytes(uint8_t* dest, size_t n) { in GetNBytes()
[all …]
Drandom_generator.h28 class RandomGenerator {
32 explicit RandomGenerator(std::unique_ptr<RandomGeneratorEngine> engine);
36 explicit RandomGenerator(uint64_t seed);
38 ~RandomGenerator() = default;
39 RandomGenerator(RandomGenerator&&) = default;
105 RandomGenerator(const RandomGenerator&) = delete;
106 RandomGenerator& operator=(const RandomGenerator&) = delete;
Drandom_generator_test.cc45 void SetUp() override { rng_ = std::make_unique<RandomGenerator>(0); } in SetUp()
50 std::unique_ptr<RandomGenerator> rng_;
169 std::make_unique<RandomGenerator>(std::make_unique<MonotonicEngine>()); in TEST_F()
191 std::make_unique<RandomGenerator>(std::make_unique<MonotonicEngine>()); in TEST_F()
Ddata_builder.h42 : generator_(RandomGenerator::CalculateSeed(data, size)) { in DataBuilder()
96 RandomGenerator generator_;
/third_party/skia/third_party/externals/spirv-tools/test/fuzzers/
Drandom_generator.cpp84 RandomGenerator::RandomGenerator(uint64_t seed) : engine_(seed) {} in RandomGenerator() function in spvtools::fuzzers::RandomGenerator
86 RandomGenerator::RandomGenerator(const uint8_t* data, size_t size) { in RandomGenerator() function in spvtools::fuzzers::RandomGenerator
87 RandomGenerator(RandomGenerator::CalculateSeed(data, size)); in RandomGenerator()
90 spv_target_env RandomGenerator::GetTargetEnv() { in GetTargetEnv()
102 uint32_t RandomGenerator::GetUInt32(uint32_t lower, uint32_t upper) { in GetUInt32()
106 uint32_t RandomGenerator::GetUInt32(uint32_t bound) { in GetUInt32()
111 uint64_t RandomGenerator::CalculateSeed(const uint8_t* data, size_t size) { in CalculateSeed()
Drandom_generator.h27 class RandomGenerator {
31 explicit RandomGenerator(uint64_t seed);
36 explicit RandomGenerator(const uint8_t* data, size_t size);
38 ~RandomGenerator() {} in ~RandomGenerator()
/third_party/spirv-tools/test/fuzzers/
Drandom_generator.cpp84 RandomGenerator::RandomGenerator(uint64_t seed) : engine_(seed) {} in RandomGenerator() function in spvtools::fuzzers::RandomGenerator
86 RandomGenerator::RandomGenerator(const uint8_t* data, size_t size) { in RandomGenerator() function in spvtools::fuzzers::RandomGenerator
87 RandomGenerator(RandomGenerator::CalculateSeed(data, size)); in RandomGenerator()
90 spv_target_env RandomGenerator::GetTargetEnv() { in GetTargetEnv()
102 uint32_t RandomGenerator::GetUInt32(uint32_t lower, uint32_t upper) { in GetUInt32()
106 uint32_t RandomGenerator::GetUInt32(uint32_t bound) { in GetUInt32()
111 uint64_t RandomGenerator::CalculateSeed(const uint8_t* data, size_t size) { in CalculateSeed()
Drandom_generator.h27 class RandomGenerator {
31 explicit RandomGenerator(uint64_t seed);
36 explicit RandomGenerator(const uint8_t* data, size_t size);
38 ~RandomGenerator() {} in ~RandomGenerator()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzzers/
Drandom_generator.cpp84 RandomGenerator::RandomGenerator(uint64_t seed) : engine_(seed) {} in RandomGenerator() function in spvtools::fuzzers::RandomGenerator
86 RandomGenerator::RandomGenerator(const uint8_t* data, size_t size) { in RandomGenerator() function in spvtools::fuzzers::RandomGenerator
87 RandomGenerator(RandomGenerator::CalculateSeed(data, size)); in RandomGenerator()
90 spv_target_env RandomGenerator::GetTargetEnv() { in GetTargetEnv()
102 uint32_t RandomGenerator::GetUInt32(uint32_t lower, uint32_t upper) { in GetUInt32()
106 uint32_t RandomGenerator::GetUInt32(uint32_t bound) { in GetUInt32()
111 uint64_t RandomGenerator::CalculateSeed(const uint8_t* data, size_t size) { in CalculateSeed()
Drandom_generator.h27 class RandomGenerator {
31 explicit RandomGenerator(uint64_t seed);
36 explicit RandomGenerator(const uint8_t* data, size_t size);
38 ~RandomGenerator() {} in ~RandomGenerator()
/third_party/skia/third_party/externals/tint/fuzzers/tint_regex_fuzzer/
Dwgsl_mutator.h136 RandomGenerator& generator);
147 RandomGenerator& generator);
158 RandomGenerator& generator);
165 RandomGenerator& generator);
173 RandomGenerator& generator);
181 bool InsertReturnStatement(std::string& wgsl_code, RandomGenerator& generator);
Dwgsl_mutator.cc125 bool InsertReturnStatement(std::string& wgsl_code, RandomGenerator& generator) { in InsertReturnStatement()
222 RandomGenerator& generator) { in SwapRandomIntervals()
256 RandomGenerator& generator) { in DeleteRandomInterval()
280 RandomGenerator& generator) { in DuplicateRandomInterval()
305 RandomGenerator& generator) { in ReplaceRandomIdentifier()
332 RandomGenerator& generator) { in ReplaceRandomIntLiteral()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Drandom_generator.cpp20 RandomGenerator::RandomGenerator() = default;
22 RandomGenerator::~RandomGenerator() = default;
Drandom_generator.h23 class RandomGenerator {
25 RandomGenerator();
27 virtual ~RandomGenerator();
Dfuzzer_context.h36 FuzzerContext(std::unique_ptr<RandomGenerator> random_generator,
487 std::unique_ptr<RandomGenerator> random_generator_;
599 const std::function<bool(uint32_t, RandomGenerator*)>&
Dpseudo_random_generator.h26 class PseudoRandomGenerator : public RandomGenerator {
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Drandom_generator.cpp20 RandomGenerator::RandomGenerator() = default;
22 RandomGenerator::~RandomGenerator() = default;
Drandom_generator.h23 class RandomGenerator {
25 RandomGenerator();
27 virtual ~RandomGenerator();
Dfuzzer_context.h36 FuzzerContext(std::unique_ptr<RandomGenerator> random_generator,
487 std::unique_ptr<RandomGenerator> random_generator_;
599 const std::function<bool(uint32_t, RandomGenerator*)>&
Dpseudo_random_generator.h26 class PseudoRandomGenerator : public RandomGenerator {
/third_party/spirv-tools/source/fuzz/
Drandom_generator.cpp20 RandomGenerator::RandomGenerator() = default;
22 RandomGenerator::~RandomGenerator() = default;
Drandom_generator.h23 class RandomGenerator {
25 RandomGenerator();
27 virtual ~RandomGenerator();
Dfuzzer_context.h36 FuzzerContext(std::unique_ptr<RandomGenerator> random_generator,
487 std::unique_ptr<RandomGenerator> random_generator_;
599 const std::function<bool(uint32_t, RandomGenerator*)>&
Dpseudo_random_generator.h26 class PseudoRandomGenerator : public RandomGenerator {
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/
Dprobability_context.h35 explicit ProbabilityContext(RandomGenerator* generator);
68 RandomGenerator* generator_;

123