Home
last modified time | relevance | path

Searched refs:rng (Results 1 – 25 of 164) sorted by relevance

1234567

/third_party/skia/third_party/externals/tint/src/
Dsource.cc42 auto rng = source.range; in operator <<() local
47 if (rng.begin.line) { in operator <<()
48 out << rng.begin.line << ":"; in operator <<()
49 if (rng.begin.column) { in operator <<()
50 out << rng.begin.column; in operator <<()
62 for (size_t line = rng.begin.line; line <= rng.end.line; line++) { in operator <<()
70 if (line == rng.begin.line && line == rng.end.line) { in operator <<()
72 repeat(' ', rng.begin.column - 1); in operator <<()
73 repeat('^', std::max<size_t>(rng.end.column - rng.begin.column, 1)); in operator <<()
74 } else if (line == rng.begin.line) { in operator <<()
[all …]
Dsource.h139 inline explicit Source(const Range& rng) : range(rng) {} in Source() argument
148 inline Source(const Range& rng, File const* file) in Source() argument
149 : range(rng), file_path(file->path), file_content(&file->content) {} in Source()
156 inline Source(const Range& rng,
159 : range(rng), file_path(path), file_content(content) {} in range() argument
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/
DLightsTest.cpp214 angle::RNG rng(0); in TEST_P() local
229 const GLColor32F lightModelAmbient(rng.randomFloat(), rng.randomFloat(), rng.randomFloat(), in TEST_P()
230 rng.randomFloat()); in TEST_P()
231 const GLfloat lightModelTwoSide = rng.randomBool() ? 1.0f : 0.0f; in TEST_P()
248 const GLColor32F ambient(rng.randomFloat(), rng.randomFloat(), rng.randomFloat(), in TEST_P()
249 rng.randomFloat()); in TEST_P()
250 const GLColor32F diffuse(rng.randomFloat(), rng.randomFloat(), rng.randomFloat(), in TEST_P()
251 rng.randomFloat()); in TEST_P()
252 const GLColor32F specular(rng.randomFloat(), rng.randomFloat(), rng.randomFloat(), in TEST_P()
253 rng.randomFloat()); in TEST_P()
[all …]
DTextureEnvTest.cpp247 angle::RNG rng(0); in TEST_P() local
299 GLenum textureUnit = rng.randomSelect(validUnits); in TEST_P()
300 GLenum mode = rng.randomSelect(validEnvModes); in TEST_P()
301 GLenum combineRgb = rng.randomSelect(validCombineRgbs); in TEST_P()
302 GLenum combineAlpha = rng.randomSelect(validCombineAlphas); in TEST_P()
304 GLenum src0Rgb = rng.randomSelect(validSrcs); in TEST_P()
305 GLenum src0Alpha = rng.randomSelect(validSrcs); in TEST_P()
306 GLenum src1Rgb = rng.randomSelect(validSrcs); in TEST_P()
307 GLenum src1Alpha = rng.randomSelect(validSrcs); in TEST_P()
308 GLenum src2Rgb = rng.randomSelect(validSrcs); in TEST_P()
[all …]
/third_party/skia/third_party/externals/tint/src/diagnostic/
Dformatter.cc132 auto const& rng = src.range; in format() local
146 if (rng.begin.line > 0) { in format()
147 prefix.emplace_back(TextAndColor{src.file_path + ":" + to_str(rng.begin), in format()
152 } else if (rng.begin.line > 0) { in format()
153 prefix.emplace_back(TextAndColor{to_str(rng.begin), Color::kDefault}); in format()
193 if (style_.print_line && src.file_content != nullptr && rng.begin.line > 0) { in format()
197 for (size_t line_num = rng.begin.line; in format()
198 (line_num <= rng.end.line) && in format()
227 if (line_num == rng.begin.line && line_num == rng.end.line) { in format()
229 state.repeat(' ', num_glyphs(1, rng.begin.column)); in format()
[all …]
/third_party/node/deps/v8/tools/testrunner/testproc/
Dfuzzer.py55 def random_extra_flags(rng): argument
59 return [flag for prob, flag in EXTRA_FLAGS if rng.random() < prob]
86 def create_flags_generator(self, rng, test, analysis_value): argument
99 def __init__(self, rng, count, fuzzers, disable_analysis=False): argument
110 self._rng = rng
224 def create_flags_generator(self, rng, test, analysis_value): argument
240 def create_flags_generator(self, rng, test, analysis_value): argument
256 def create_flags_generator(self, rng, test, analysis_value): argument
266 def create_flags_generator(self, rng, test, analysis_value): argument
272 def create_flags_generator(self, rng, test, analysis_value): argument
[all …]
/third_party/mbedtls/programs/ssl/
Dssl_test_lib.c75 void rng_init(rng_context_t *rng) in rng_init() argument
78 (void) rng; in rng_init()
83 mbedtls_ctr_drbg_init(&rng->drbg); in rng_init()
85 mbedtls_hmac_drbg_init(&rng->drbg); in rng_init()
90 mbedtls_entropy_init(&rng->entropy); in rng_init()
94 int rng_seed(rng_context_t *rng, int reproducible, const char *pers) in rng_seed() argument
105 (void) rng; in rng_seed()
122 int ret = mbedtls_ctr_drbg_seed(&rng->drbg, in rng_seed()
123 f_entropy, &rng->entropy, in rng_seed()
134 int ret = mbedtls_hmac_drbg_seed(&rng->drbg, in rng_seed()
[all …]
/third_party/skia/third_party/externals/angle2/util/
Drandom_utils.h59 inline void FillVectorWithRandomUBytes(RNG *rng, std::vector<uint8_t> *data) in FillVectorWithRandomUBytes() argument
63 (*data)[i] = static_cast<uint8_t>(rng->randomIntBetween(0, 255)); in FillVectorWithRandomUBytes()
69 RNG rng; in FillVectorWithRandomUBytes() local
70 FillVectorWithRandomUBytes(&rng, data); in FillVectorWithRandomUBytes()
75 RNG rng(seed); in RandomVec4()
78 rng.randomFloatBetween(minValue, maxValue), rng.randomFloatBetween(minValue, maxValue), in RandomVec4()
79 rng.randomFloatBetween(minValue, maxValue), rng.randomFloatBetween(minValue, maxValue)); in RandomVec4()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fUniformLocationTests.cpp163 de::Random rng (seed); in shuffledRange() local
170 rng.shuffle(retval.begin(), retval.end()); in shuffledRange()
791 de::Random rng (baseSeed + 0x1001); in init() local
808 rng.getInt(0, maxLocations-1)); in init()
819 de::Random rng (baseSeed + 0x2001); in init() local
837 rng.getInt(0, maxLocations-1-8)); in init()
848 de::Random rng (baseSeed + 0x3001); in init() local
867 rng.getInt(0, maxLocations-1-arraySize*arraySize)); in init()
878 de::Random rng (baseSeed + 0x4001); in init() local
887 const Stage layoutLoc = Stage(rng.getUint32()&0x3); in init()
[all …]
Des31fCopyImageTests.cpp295 de::Random rng (seed); in getRandomOffset() local
311 result.x() = rng.getInt(0, extraSpace.x()); in getRandomOffset()
312 result.y() = rng.getInt(0, extraSpace.y()); in getRandomOffset()
674 void genTexel (de::Random& rng, deUint32 glFormat, int texelBlockSize, const int texelCount, deUint… in genTexel() argument
684 const float red = rng.getFloat(info.valueMin.x(), info.valueMax.x()); in genTexel()
685 const float green = rng.getFloat(info.valueMin.y(), info.valueMax.y()); in genTexel()
686 const float blue = rng.getFloat(info.valueMin.z(), info.valueMax.z()); in genTexel()
687 const float alpha = rng.getFloat(info.valueMin.w(), info.valueMax.w()); in genTexel()
718 const int blockNdx = rng.getInt(0, DE_LENGTH_OF_ARRAY(blocks)-1); in genTexel()
727 const deUint8 val = rng.getUint8(); in genTexel()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dseed_sequences_test.cc53 ExampleNonsecureURBG rng; in TEST() local
56 auto seq_from_rng = absl::CreateSeedSeqFrom(&rng); in TEST()
64 absl::BitGen rng; in TEST() local
67 auto seq_from_rng = absl::CreateSeedSeqFrom(&rng); in TEST()
75 absl::InsecureBitGen rng; in TEST() local
78 auto seq_from_rng = absl::CreateSeedSeqFrom(&rng); in TEST()
99 URBG rng; in TestReproducibleVariateSequencesForNonsecureURBG() local
101 auto reusable_seed = absl::CreateSeedSeqFrom(&rng); in TestReproducibleVariateSequencesForNonsecureURBG()
Dbenchmarks.cc121 auto rng = make_engine<Engine, SSeq>(); in BM_Construct() local
122 benchmark::DoNotOptimize(rng()); in BM_Construct()
130 auto rng = make_engine<Engine>(); in BM_Direct() local
132 benchmark::DoNotOptimize(rng()); in BM_Direct()
143 auto rng = make_engine<Engine>(); in BM_Generate() local
145 std::generate(std::begin(v), std::end(v), rng); in BM_Generate()
154 auto rng = make_engine<Engine>(); in BM_Shuffle() local
155 std::shuffle(std::begin(v), std::end(v), rng); in BM_Shuffle()
163 auto rng = make_engine<Engine>(); in BM_ShuffleReuse() local
165 std::shuffle(std::begin(v), std::end(v), rng); in BM_ShuffleReuse()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dpool_urbg_test.cc43 MyFill(T& rng, absl::Span<V> data) { // NOLINT(runtime/references) in MyFill() argument
44 std::generate(std::begin(data), std::end(data), rng); in MyFill()
49 MyFill(T& rng, absl::Span<V> data) { // NOLINT(runtime/references) in MyFill() argument
50 rng.Fill(data); in MyFill()
104 E rng; in TYPED_TEST() local
105 (void)rng(); // Discard one value. in TYPED_TEST()
114 E x = rng; in TYPED_TEST()
120 E x = rng; in TYPED_TEST()
/third_party/vk-gl-cts/modules/glshared/
DglsTextureBufferCase.cpp91 void genRandomCoords (de::Random rng, vector<deUint8>& coords, size_t offset, size_t size) in genRandomCoords() argument
100 const deUint8 xBits = deUint8(rng.getUint32() & bitMask); in genRandomCoords()
423 de::Random& rng, in modifyBufferData() argument
428 genRandomCoords(rng, data, 0, texture.getBufferSize()); in modifyBufferData()
442 de::Random& rng, in modifyBufferSubData() argument
447 …e.getSize() != 0 ? texture.getSize() : texture.getBufferSize()) * (0.7f + 0.3f * rng.getFloat()))); in modifyBufferSubData()
449 …const size_t offset = minOffset + (rng.getUint32() % (texture.getBufferSize() - (size + minOff… in modifyBufferSubData()
452 genRandomCoords(rng, data, offset, size); in modifyBufferSubData()
465 de::Random& rng, in modifyMapWrite() argument
470 …e.getSize() != 0 ? texture.getSize() : texture.getBufferSize()) * (0.7f + 0.3f * rng.getFloat()))); in modifyMapWrite()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Draw_hash_set_benchmark.cc139 std::string operator()(RNG& rng) const { in operator ()()
143 std::generate(res.begin(), res.end(), [&] { return printable_ascii(rng); }); in operator ()()
155 std::mt19937 rng(rd()); in BM_CacheInSteadyState() local
160 auto x = t.emplace(gen(rng), gen(rng)); in BM_CacheInSteadyState()
172 for (int i = 0; i != 10; ++i) ::benchmark::DoNotOptimize(t.find(gen(rng))); in BM_CacheInSteadyState()
176 auto x = t.emplace(gen(rng), gen(rng)); in BM_CacheInSteadyState()
206 std::mt19937 rng(rd()); in BM_EndComparison() local
210 t.emplace(gen(rng), gen(rng)); in BM_EndComparison()
225 std::mt19937 rng(rd()); in BM_CopyCtor() local
230 t.emplace(dist(rng)); in BM_CopyCtor()
[all …]
/third_party/node/deps/v8/tools/clusterfuzz/foozzie/
Dv8_fuzz_config.py24 def __init__(self, name, rng=None): argument
32 self.rng = rng or random.Random()
49 if self.rng.random() < p:
55 threshold = self.rng.random() * 100
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcord_test.cc45 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() argument
51 return uniform(*rng); in GetUniformRandomUpTo()
57 static size_t GetUniformRandomUpTo(RandomEngine* rng, size_t upper_bound) { in GetUniformRandomUpTo() argument
60 return uniform(*rng); in GetUniformRandomUpTo()
66 static int32_t GenerateSkewedRandom(RandomEngine* rng, int max_log) { in GenerateSkewedRandom() argument
67 const uint32_t base = (*rng)() % (max_log + 1); in GenerateSkewedRandom()
69 return (*rng)() & mask; in GenerateSkewedRandom()
72 static std::string RandomLowercaseString(RandomEngine* rng) { in RandomLowercaseString() argument
[all …]
/third_party/skia/third_party/externals/icu/fuzzers/
Dfuzzer_utils.h24 std::mt19937_64 rng; in CreateRng() local
27 rng.seed(data_hash); in CreateRng()
28 return rng; in CreateRng()
31 const icu::Locale& GetRandomLocale(std::mt19937_64* rng) { in GetRandomLocale() argument
35 return locales[(*rng)() % num_locales]; in GetRandomLocale()
Dicu_to_case_fuzzer.cc31 auto rng = CreateRng(data, size); in LLVMFuzzerTestOneInput() local
32 const char* locale = kCaseLocales[rng() % kCaseLocales.size()]; in LLVMFuzzerTestOneInput()
35 int32_t dest_size = (rng() % (str.length() + 3)); in LLVMFuzzerTestOneInput()
38 switch (rng() % 2) { in LLVMFuzzerTestOneInput()
Dicu_ucasemap_fuzzer.cc21 auto rng = CreateRng(data, size); in LLVMFuzzerTestOneInput() local
22 const icu::Locale& locale = GetRandomLocale(&rng); in LLVMFuzzerTestOneInput()
23 uint32_t open_flags = static_cast<uint32_t>(rng()); in LLVMFuzzerTestOneInput()
36 switch (rng() % 4) { in LLVMFuzzerTestOneInput()
/third_party/openssl/test/testutil/
Dfake_random.c174 static int check_rng(EVP_RAND_CTX *rng, const char *name) in check_rng() argument
178 if (!TEST_ptr(rng)) { in check_rng()
182 f = rng->algctx; in check_rng()
184 f->ctx = rng; in check_rng()
214 void fake_rand_set_callback(EVP_RAND_CTX *rng, in fake_rand_set_callback() argument
218 if (rng != NULL) in fake_rand_set_callback()
219 ((FAKE_RAND *)rng->algctx)->cb = cb; in fake_rand_set_callback()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DDynamicPromotionPerfTest.cpp96 RNG rng(1); in initializeBenchmark() local
102 Vector2 position(rng.randomNegativeOneToOne(), rng.randomNegativeOneToOne()); in initializeBenchmark()
105 Vector3 color(rng.randomFloat(), rng.randomFloat(), rng.randomFloat()); in initializeBenchmark()
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dgraphcycles_test.cc169 static int RandomNode(RandomEngine* rng, Nodes *nodes) { in RandomNode() argument
171 return uniform(*rng); in RandomNode()
176 static int RandomEdge(RandomEngine* rng, Edges *edges) { in RandomEdge() argument
178 return uniform(*rng); in RandomEdge()
201 RandomEngine rng(testing::UnitTest::GetInstance()->random_seed()); in TEST() local
214 op = uniform(rng); in TEST()
229 int node_index = RandomNode(&rng, &nodes); in TEST()
250 int from = RandomNode(&rng, &nodes); in TEST()
251 int to = RandomNode(&rng, &nodes); in TEST()
269 int i = RandomEdge(&rng, &edges); in TEST()
[all …]
/third_party/elfutils/tests/
Drun-readelf-discr.sh70 testfiles testfile-rng.debug testfile-urng.debug
72 testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=info testfile-rng.debug testfile-ur…
74 testfile-rng.debug:
98 decl_file (data1) rng.ads (1)
104 decl_file (data1) rng.ads (1)
121 decl_file (data1) rng.ads (1)
131 decl_file (data1) rng.ads (1)
141 decl_file (data1) rng.ads (1)
215 decl_file (data1) rng.ads (1)
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryMappingTests.cpp788 de::Random rng (config.seed); in testMemoryMapping() local
801 const deUint8 val = rng.getUint8(); in testMemoryMapping()
901 void randomRead (de::Random& rng);
902 void randomWrite (de::Random& rng);
903 void randomModify (de::Random& rng);
923 void MemoryMapping::randomRead (de::Random& rng) in randomRead() argument
925 const size_t count = (size_t)rng.getInt(0, 100); in randomRead()
929 const size_t pos = (size_t)(rng.getUint64() % (deUint64)m_range.size); in randomRead()
936 void MemoryMapping::randomWrite (de::Random& rng) in randomWrite() argument
938 const size_t count = (size_t)rng.getInt(0, 100); in randomWrite()
[all …]

1234567