Home
last modified time | relevance | path

Searched refs:Random (Results 1 – 25 of 621) sorted by relevance

12345678910>>...25

/third_party/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/
DUTF8Benchmark.kt32 import kotlin.random.Random
168 data[i] = Random.nextInt(0, 127).toByte() in populateAscii()
180 val w = Random.nextInt() and 0xFF in populateUTF8()
184 data[i++] = (0xC2 + Random.nextInt() % (0xDF - 0xC2 + 1)).toByte() in populateUTF8()
185 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
189 data[i++] = (0xA0 + Random.nextInt() % (0xBF - 0xA0 + 1)).toByte() in populateUTF8()
190 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
194 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
195 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
199 data[i++] = (0x80 + Random.nextInt() % (0x9F - 0x80 + 1)).toByte() in populateUTF8()
[all …]
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeRandom.hpp38 class Random class
41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); } in Random() function in de::Random
42 ~Random (void) {} in ~Random()
72 bool operator== (const Random& other) const;
73 bool operator!= (const Random& other) const;
81 inline float Random::getFloat (float min, float max) in getFloat()
87 inline double Random::getDouble (double min, double max) in getDouble()
93 inline int Random::getInt (int min, int max) in getInt()
105 void Random::choose (InputIter first, InputIter last, OutputIter result, int numItems) in choose()
128 T Random::choose (InputIter first, InputIter last) in choose()
[all …]
DdeRandom.cpp39 bool Random::operator== (const Random& other) const in operator ==()
44 bool Random::operator!= (const Random& other) const in operator !=()
55 Random rnd(4789); in Random_selfTest()
64 Random rnd(4789); in Random_selfTest()
73 Random rnd(4789); in Random_selfTest()
82 Random rnd(4789); in Random_selfTest()
92 Random rnd(4789); in Random_selfTest()
102 Random rnd(4789); in Random_selfTest()
125 Random rnd(4789); in Random_selfTest()
141 Random rnd(4789); in Random_selfTest()
[all …]
DdeBlockBuffer.cpp71 Random rnd ((deUint32)m_lastPayload.size()); in run()
137 Random rnd (m_threadId); in run()
164 Random rnd (iterNdx); in runTest()
240 Random rnd(m_seed); in run()
277 Random rnd(m_seed); in run()
306 Random rnd (deInt32Hash(iterNdx)); in runTest()
/third_party/vk-gl-cts/framework/common/
DtcuRandomValueIterator.hpp33 T getRandomValue (de::Random& rnd) in getRandomValue()
48 template <> inline deUint8 getRandomValue<deUint8> (de::Random& rnd) { return (deUint8)rnd.getUint… in getRandomValue()
49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUi… in getRandomValue()
50 template <> inline deUint32 getRandomValue<deUint32> (de::Random& rnd) { return rnd.getUint32(); … in getRandomValue()
51 template <> inline deUint64 getRandomValue<deUint64> (de::Random& rnd) { return rnd.getUint64(); … in getRandomValue()
52 template <> inline deInt8 getRandomValue<deInt8> (de::Random& rnd) { return (deInt8)rnd.getUint32(… in getRandomValue()
53 template <> inline deInt16 getRandomValue<deInt16> (de::Random& rnd) { return (deInt16)rnd.getUint… in getRandomValue()
54 template <> inline deInt32 getRandomValue<deInt32> (de::Random& rnd) { return (deInt32)rnd.getUint… in getRandomValue()
55 template <> inline deInt64 getRandomValue<deInt64> (de::Random& rnd) { return (deInt64)rnd.getUint… in getRandomValue()
75 de::Random m_rnd;
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Draw_hash_set_probe_benchmark.cc360 struct Random { struct
365 struct Random<Ptr<Align>*, Dist> { struct
367 return MakePtr<Align>(Random<uintptr_t, Dist>{}() * Align); in operator ()()
372 struct Random<IntIdentity, Dist> { struct
374 return IntIdentity{Random<uint64_t, Dist>{}()}; in operator ()()
379 struct Random<PtrIdentity<Align>, Dist> { struct
381 return PtrIdentity<Align>{Random<uintptr_t, Dist>{}() * Align}; in operator ()()
386 struct Random<String<small>, Dist> { struct
388 return String<small>::Make(Random<uint32_t, Dist>{}()); in operator ()()
393 struct Random<std::pair<T, U>, Dist> { struct
[all …]
/third_party/openssl/test/recipes/30-test_evp_data/
Devpciph_camellia_cts.txt35 # Random confounder: B69822A19A6B09C0EBC8557D1F1B6C0A
46 # Random confounder: 6F2FC3C2A166FD8898967A83DE9596D9
57 # Random confounder: A5B4A71E077AEEF93C8763C18FDB1F10
68 # Random confounder: 19FEE40D810C524B5B22F01874C693DA
79 # Random confounder: CA7A7AB4BE192DABD603506DB19C39E2
90 # Random confounder: 3CBBD2B45917941067F96599BB98926C
101 # Random confounder: DEF487FCEBE6DE6346D4DA4521BBA2D2
112 # Random confounder: AD4FF904D34E555384B14100FC465F88
123 # Random confounder: CF9BCA6DF1144E0C0AF9B8F34C90D514
134 # Random confounder: 644DEF38DA35007275878D216855E228
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationThreadTest.java14 import java.util.Random;
141 private static void scramble(String[] data, Random r) { in scramble()
192 private Random r;
194 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test()
256 final Random r = new Random(); in testThreads()
281 final Random r = new Random(); in testFrozen()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DCollationThreadTest.java15 import java.util.Random;
144 private static void scramble(String[] data, Random r) { in scramble()
195 private Random r;
197 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test()
259 final Random r = new Random(); in testThreads()
284 final Random r = new Random(); in testFrozen()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DUtf8Utils.java37 import java.util.Random;
119 final Random rnd = new Random(seed); in randomStrings()
134 static String randomString(Random rnd, int charCount, MaxCodePoint maxCodePoint) { in randomString()
164 final Random rnd = new Random(seed); in randomStringsWithDistribution()
DExperimentalTestDataProvider.java33 import java.util.Random;
37 private static final Random RANDOM = new Random(100);
/third_party/vk-gl-cts/framework/randomshaders/
DrsgBinaryOps.hpp80 …void operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMi…
81 …void operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bM…
82 …void operator() (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const { DE_ASSERT(DE_FALSE);… in operator ()()
104 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const;
126 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const;
164 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co…
188 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co…
212 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()()
239 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()()
DrsgBinaryOps.cpp463 void ComputeMulRange::operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& … in operator ()()
522 void ComputeMulRange::operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, in… in operator ()()
547 void ComputeAddRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin… in operator ()()
551 int operator() (de::Random& rnd, int min, int max) const { return rnd.getInt(min, max); } in operator ()()
552 …float operator() (de::Random& rnd, float min, float max) const { return getQuantizedFloat(rnd, min… in operator ()()
576 void ComputeAddRange::operator()<bool> (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const in operator()
597 void ComputeSubRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin… in operator ()()
601 int operator() (de::Random& rnd, int min, int max) const { return rnd.getInt(min, max); } in operator ()()
602 …float operator() (de::Random& rnd, float min, float max) const { return getQuantizedFloat(rnd, min… in operator ()()
626 void ComputeSubRange::operator()<bool> (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const in operator()
[all …]
DrsgGeneratorState.hpp55 GeneratorState (const ProgramParameters& programParams, de::Random& random);
59 de::Random& getRandom (void) { return m_random; } in getRandom()
90 de::Random& m_random;
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmUtils.hpp290 std::vector<deInt64> getInt64s (de::Random& rnd, const deUint32 count);
295 std::vector<deInt32> getInt32s (de::Random& rnd, const deUint32 count);
300 std::vector<deInt16> getInt16s (de::Random& rnd, const deUint32 count);
305 std::vector<deInt8> getInt8s (de::Random& rnd, const deUint32 count);
311 std::vector<double> getFloat64s (de::Random& rnd, deUint32 count);
317 std::vector<float> getFloat32s (de::Random& rnd, deUint32 count);
323 std::vector<deFloat16> getFloat16s (de::Random& rnd, deUint32 count);
DvktSpvAsmIntegerDotProductTests.cpp59 static void fillRandomScalars(de::Random& rnd, T minValue, T maxValue, void* dst, int numValues, in… in fillRandomScalars()
539 void addOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd… in addOpSDotKHRComputeTests()
578 void add32bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add32bitOpSDotKHRComputeTests()
585 void add16bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add16bitOpSDotKHRComputeTests()
592 void add8bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add8bitOpSDotKHRComputeTests()
627 void addOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd… in addOpUDotKHRComputeTests()
666 void add32bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add32bitOpUDotKHRComputeTests()
673 void add16bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add16bitOpUDotKHRComputeTests()
680 void add8bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add8bitOpUDotKHRComputeTests()
714 void addOpSUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rn… in addOpSUDotKHRComputeTests()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsRandomUniformBlockCase.hpp32 class Random;
80 void generateBlock (de::Random& rnd, deUint32 layoutFlags);
81 void generateUniform (de::Random& rnd, ub::UniformBlock& block);
82 ub::VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
DglsInteractionTestUtil.hpp33 class Random;
121 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int tar…
122 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidt…
123 void computeRandomRenderCommands (de::Random& rnd, glu::ApiType apiType, int numCommands, int tar…
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktRandomUniformBlockCase.hpp31 class Random;
76 void generateBlock (de::Random& rnd, deUint32 layoutFlags);
77 void generateUniform (de::Random& rnd, UniformBlock& block);
78 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackRandomLayoutCase.hpp32 class Random;
67 void generateBlock (de::Random& rnd, deUint32 layoutFlags);
68 …void generateBlockMember (de::Random& rnd, InterfaceBlock& block, const int numBlockMembers…
69 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
/third_party/typescript/tests/baselines/reference/
DcheckJsxChildrenProperty2.types42 <Comp a={10} b="hi" children="Random" >
43 ><Comp a={10} b="hi" children="Random" > hi hi hi! </Comp> : JSX.Element
56 >{ children:"Random"} : { children: string; }
58 children:"Random"
60 >"Random" : "Random"
/third_party/python/Lib/test/
Dtest_random.py392 r = _random.Random()
399 r1 = _random.Random()
401 r2 = _random.Random(8675309)
587 gen = random.Random()
855 with unittest.mock.patch.object(random.Random, 'random') as random_mock:
944 gen2 = random.Random()
1000 g = random.Random()
1020 g = random.Random()
1050 g = random.Random()
1072 g = random.Random()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
DParseRawPrimitivesBenchmark.cs59 Random random = new Random(417384220); // random but deterministic seed
374 …private static byte[] CreateBufferWithRandomVarints(Random random, int valueCount, int encodedSize… in CreateBufferWithRandomVarints()
392 …private static byte[] CreateBufferWithRandomFloats(Random random, int valueCount, int paddingValue… in CreateBufferWithRandomFloats()
405 …private static byte[] CreateBufferWithRandomDoubles(Random random, int valueCount, int paddingValu… in CreateBufferWithRandomDoubles()
418 …private static byte[] CreateBufferWithRandomData(Random random, int valueCount, int encodedSize, i… in CreateBufferWithRandomData()
429 public static ulong RandomUnsignedVarint(Random random, int encodedSize, bool fitsIn32Bits) in RandomUnsignedVarint()
/third_party/json/test/thirdparty/Fuzzer/test/
DFuzzerUnittest.cpp29 Random Rand(0); in TEST()
117 Random Rand(0); in TestEraseBytes()
153 Random Rand(0); in TestInsertByte()
189 Random Rand(0); in TestInsertRepeatedBytes()
233 Random Rand(0); in TestChangeByte()
269 Random Rand(0); in TestChangeBit()
305 Random Rand(0); in TestShuffleBytes()
335 Random Rand(0); in TestCopyPart()
383 Random Rand(0); in TestAddWordFromDictionary()
425 Random Rand(0); in TestAddWordFromDictionaryWithHint()
[all …]
/third_party/vk-gl-cts/modules/egl/
DteglChooseConfigTests.cpp294 de::Random rnd(0); in getValue()
357 de::Random rnd(m_iterNdx); in iterate()
368 template <int MinVal, int MaxVal> static EGLint getInt (de::Random& rnd) in getInt()
373 static EGLint getBool (de::Random& rnd) in getBool()
378 static EGLint getBufferType (de::Random& rnd) in getBufferType()
384 static EGLint getConfigCaveat (de::Random& rnd) in getConfigCaveat()
390 static EGLint getApiBits (de::Random& rnd) in getApiBits()
400 static EGLint getSurfaceType (de::Random& rnd) in getSurfaceType()
412 EGLint (*getValue)(de::Random& rnd);
415 …EGLint> > genRandomAttributes (const std::set<EGLenum>& attribSet, int numAttribs, de::Random& rnd) in genRandomAttributes()

12345678910>>...25