/external/deqp/modules/gles3/functional/ |
D | es3fRandomShaderTests.cpp | 39 …nst char* description, const rsg::ProgramParameters& baseParams, deUint32 seed, bool vertex, bool … in createRandomShaderCase() argument 44 params.seed = seed; in createRandomShaderCase() 48 …erCase(context.getTestContext(), context.getRenderContext(), de::toString(seed).c_str(), descripti… in createRandomShaderCase() 72 for (int seed = 0; seed < 100; seed++) in init() local 74 …andomShaderCase(m_context, "Random expressions in vertex shader", params, seed, true, false)); in init() 75 …andomShaderCase(m_context, "Random expressions in fragment shader", params, seed, false, true)); in init() 76 …derCase(m_context, "Random expressions in vertex and fragment shaders", params, seed, true, true)); in init() 103 for (int seed = 0; seed < 100; seed++) in init() local 105 …andomShaderCase(m_context, "Scalar conversions in vertex shader", params, seed, true, false)); in init() 106 …andomShaderCase(m_context, "Scalar conversions in fragment shader", params, seed, false, true)); in init() [all …]
|
/external/deqp/modules/gles2/functional/ |
D | es2fRandomShaderTests.cpp | 38 …nst char* description, const rsg::ProgramParameters& baseParams, deUint32 seed, bool vertex, bool … in createRandomShaderCase() argument 42 params.seed = seed; in createRandomShaderCase() 46 …erCase(context.getTestContext(), context.getRenderContext(), de::toString(seed).c_str(), descripti… in createRandomShaderCase() 70 for (int seed = 0; seed < 100; seed++) in init() local 72 …andomShaderCase(m_context, "Random expressions in vertex shader", params, seed, true, false)); in init() 73 …andomShaderCase(m_context, "Random expressions in fragment shader", params, seed, false, true)); in init() 74 …derCase(m_context, "Random expressions in vertex and fragment shaders", params, seed, true, true)); in init() 101 for (int seed = 0; seed < 100; seed++) in init() local 103 …andomShaderCase(m_context, "Scalar conversions in vertex shader", params, seed, true, false)); in init() 104 …andomShaderCase(m_context, "Scalar conversions in fragment shader", params, seed, false, true)); in init() [all …]
|
/external/v8/test/mjsunit/ |
D | unicodelctest-no-optimization.js | 57 var seed = 49734321; variable 63 seed = ((seed + 0x7ed55d16) + (seed << 12)) & 0xffffffff; 64 seed = ((seed ^ 0xc761c23c) ^ (seed >>> 19)) & 0xffffffff; 65 seed = ((seed + 0x165667b1) + (seed << 5)) & 0xffffffff; 66 seed = ((seed + 0xd3a2646c) ^ (seed << 9)) & 0xffffffff; 67 seed = ((seed + 0xfd7046c5) + (seed << 3)) & 0xffffffff; 68 seed = ((seed ^ 0xb55a4f09) ^ (seed >>> 16)) & 0xffffffff; 69 return (seed & 0xffff) 93 seed = 49734321;
|
D | unicodelctest.js | 56 var seed = 49734321; variable 62 seed = ((seed + 0x7ed55d16) + (seed << 12)) & 0xffffffff; 63 seed = ((seed ^ 0xc761c23c) ^ (seed >>> 19)) & 0xffffffff; 64 seed = ((seed + 0x165667b1) + (seed << 5)) & 0xffffffff; 65 seed = ((seed + 0xd3a2646c) ^ (seed << 9)) & 0xffffffff; 66 seed = ((seed + 0xfd7046c5) + (seed << 3)) & 0xffffffff; 67 seed = ((seed ^ 0xb55a4f09) ^ (seed >>> 16)) & 0xffffffff; 68 return (seed & 0xffff) 92 seed = 49734321;
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | AbstractWell.java | 82 protected AbstractWell(final int k, final int m1, final int m2, final int m3, final int seed) { in AbstractWell() argument 83 this(k, m1, m2, m3, new int[] { seed }); in AbstractWell() 94 … protected AbstractWell(final int k, final int m1, final int m2, final int m3, final int[] seed) { in AbstractWell() argument 120 setSeed(seed); in AbstractWell() 131 protected AbstractWell(final int k, final int m1, final int m2, final int m3, final long seed) { in AbstractWell() argument 132 this(k, m1, m2, m3, new int[] { (int) (seed >>> 32), (int) (seed & 0xffffffffl) }); in AbstractWell() 141 public void setSeed(final int seed) { in setSeed() argument 142 setSeed(new int[] { seed }); in setSeed() 152 public void setSeed(final int[] seed) { in setSeed() argument 154 if (seed == null) { in setSeed() [all …]
|
D | MersenneTwister.java | 114 public MersenneTwister(int seed) { in MersenneTwister() argument 116 setSeed(seed); in MersenneTwister() 123 public MersenneTwister(int[] seed) { in MersenneTwister() argument 125 setSeed(seed); in MersenneTwister() 131 public MersenneTwister(long seed) { in MersenneTwister() argument 133 setSeed(seed); in MersenneTwister() 142 public void setSeed(int seed) { in setSeed() argument 144 long longMT = seed; in setSeed() 161 public void setSeed(int[] seed) { in setSeed() argument 163 if (seed == null) { in setSeed() [all …]
|
/external/openfst/src/test/ |
D | algo_test.cc | 36 DEFINE_int32(seed, -1, "random seed"); 73 int seed = FLAGS_seed >= 0 ? FLAGS_seed : time(0); in main() local 74 srand(seed); in main() 75 LOG(INFO) << "Seed = " << seed; in main() 83 TropicalWeightGenerator tropical_generator(seed, false); in main() 85 tropical_tester(tropical_generator, seed); in main() 90 LogWeightGenerator log_generator(seed, false); in main() 92 log_tester(log_generator, seed); in main() 97 MinMaxWeightGenerator minmax_generator(seed, false); in main() 99 minmax_tester(minmax_generator, seed); in main() [all …]
|
D | weight_test.cc | 29 DEFINE_int32(seed, -1, "random seed"); 76 void TestTemplatedWeights(int repeat, int seed) { in TestTemplatedWeights() argument 77 TropicalWeightGenerator_<T> tropical_generator(seed); in TestTemplatedWeights() 82 LogWeightGenerator_<T> log_generator(seed); in TestTemplatedWeights() 87 MinMaxWeightGenerator_<T> minmax_generator(seed); in TestTemplatedWeights() 92 SignedLogWeightGenerator_<T> signedlog_generator(seed); in TestTemplatedWeights() 102 int seed = FLAGS_seed >= 0 ? FLAGS_seed : time(0); in main() local 103 LOG(INFO) << "Seed = " << seed; in main() 105 TestTemplatedWeights<float>(FLAGS_repeat, seed); in main() 106 TestTemplatedWeights<double>(FLAGS_repeat, seed); in main() [all …]
|
/external/v8/src/base/utils/ |
D | random-number-generator.cc | 34 int64_t seed; in RandomNumberGenerator() local 35 if (entropy_source(reinterpret_cast<unsigned char*>(&seed), in RandomNumberGenerator() 36 sizeof(seed))) { in RandomNumberGenerator() 37 SetSeed(seed); in RandomNumberGenerator() 56 int64_t seed; in RandomNumberGenerator() local 57 size_t n = fread(&seed, sizeof(seed), 1, fp); in RandomNumberGenerator() 60 SetSeed(seed); in RandomNumberGenerator() 73 int64_t seed = Time::NowFromSystemTime().ToInternalValue() << 24; in RandomNumberGenerator() local 74 seed ^= TimeTicks::HighResolutionNow().ToInternalValue() << 16; in RandomNumberGenerator() 75 seed ^= TimeTicks::Now().ToInternalValue() << 8; in RandomNumberGenerator() [all …]
|
/external/libdrm/ |
D | xf86drmRandom.c | 101 long seed; member 105 extern void *drmRandomCreate(unsigned long seed); 111 void *drmRandomCreate(unsigned long seed) in drmRandomCreate() argument 132 state->seed = seed; in drmRandomCreate() 135 if (state->seed <= 0) state->seed = 1; in drmRandomCreate() 136 if (state->seed >= state->m) state->seed = state->m - 1; in drmRandomCreate() 153 hi = s->seed / s->q; in drmRandom() 154 lo = s->seed % s->q; in drmRandom() 155 s->seed = s->a * lo - s->r * hi; in drmRandom() 156 if (s->seed <= 0) s->seed += s->m; in drmRandom() [all …]
|
/external/v8/benchmarks/ |
D | base.js | 87 var seed = 49734321; 90 seed = ((seed + 0x7ed55d16) + (seed << 12)) & 0xffffffff; 91 seed = ((seed ^ 0xc761c23c) ^ (seed >>> 19)) & 0xffffffff; 92 seed = ((seed + 0x165667b1) + (seed << 5)) & 0xffffffff; 93 seed = ((seed + 0xd3a2646c) ^ (seed << 9)) & 0xffffffff; 94 seed = ((seed + 0xfd7046c5) + (seed << 3)) & 0xffffffff; 95 seed = ((seed ^ 0xb55a4f09) ^ (seed >>> 16)) & 0xffffffff; 96 return (seed & 0xfffffff) / 0x10000000;
|
/external/fio/lib/ |
D | rand.c | 46 static void __init_rand(struct frand_state *state, unsigned int seed) in __init_rand() argument 50 #define LCG(x, seed) ((x) * 69069 ^ (seed)) in __init_rand() argument 52 state->s1 = __seed(LCG((2^31) + (2^17) + (2^7), seed), 1); in __init_rand() 53 state->s2 = __seed(LCG(state->s1, seed), 7); in __init_rand() 54 state->s3 = __seed(LCG(state->s2, seed), 15); in __init_rand() 65 void init_rand_seed(struct frand_state *state, unsigned int seed) in init_rand_seed() argument 67 __init_rand(state, seed); in init_rand_seed() 70 void __fill_random_buf(void *buf, unsigned int len, unsigned long seed) in __fill_random_buf() argument 78 *((int64_t *) ptr) = seed; in __fill_random_buf() 81 *((int32_t *) ptr) = seed; in __fill_random_buf() [all …]
|
/external/webrtc/src/common_audio/signal_processing/ |
D | randomization_functions.c | 92 WebRtc_UWord32 WebRtcSpl_IncreaseSeed(WebRtc_UWord32 *seed) in WebRtcSpl_IncreaseSeed() argument 94 seed[0] = (seed[0] * ((WebRtc_Word32)69069) + 1) & (WEBRTC_SPL_MAX_SEED_USED - 1); in WebRtcSpl_IncreaseSeed() 95 return seed[0]; in WebRtcSpl_IncreaseSeed() 98 WebRtc_Word16 WebRtcSpl_RandU(WebRtc_UWord32 *seed) in WebRtcSpl_RandU() argument 100 return (WebRtc_Word16)(WebRtcSpl_IncreaseSeed(seed) >> 16); in WebRtcSpl_RandU() 103 WebRtc_Word16 WebRtcSpl_RandN(WebRtc_UWord32 *seed) in WebRtcSpl_RandN() argument 105 return kRandNTable[WebRtcSpl_IncreaseSeed(seed) >> 23]; in WebRtcSpl_RandN() 111 WebRtc_UWord32* seed) in WebRtcSpl_RandUArray() argument 116 vector[i] = WebRtcSpl_RandU(seed); in WebRtcSpl_RandUArray()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | DSAValidationParameters.java | 8 private byte[] seed; field in DSAValidationParameters 12 byte[] seed, in DSAValidationParameters() argument 15 this(seed, counter, -1); in DSAValidationParameters() 19 byte[] seed, in DSAValidationParameters() argument 23 this.seed = seed; in DSAValidationParameters() 35 return seed; in getSeed() 45 return counter ^ Arrays.hashCode(seed); in hashCode() 63 return Arrays.areEqual(this.seed, other.seed); in equals()
|
D | DHValidationParameters.java | 7 private byte[] seed; field in DHValidationParameters 11 byte[] seed, in DHValidationParameters() argument 14 this.seed = seed; in DHValidationParameters() 25 return seed; in getSeed() 43 return Arrays.areEqual(this.seed, other.seed); in equals() 48 return counter ^ Arrays.hashCode(seed); in hashCode()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
D | EllipticCurveTest.java | 46 byte[] seed = new byte[24]; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 48 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 55 new EllipticCurve(f1, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 62 seed = null; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 64 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 80 byte[] seed = new byte[24]; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() 84 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() 93 seed = new byte[24]; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() 96 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() 105 seed = new byte[24]; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() [all …]
|
/external/openfst/src/include/fst/ |
D | random-weight.h | 52 TropicalWeightGenerator_(int seed = time(0), bool allow_zero = true) 54 srand(seed); in allow_zero_() 84 LogWeightGenerator_(int seed = time(0), bool allow_zero = true) 86 srand(seed); in allow_zero_() 117 MinMaxWeightGenerator_(int seed = time(0), bool allow_zero = true) 119 srand(seed); in allow_zero_() 151 StringWeightGenerator(int seed = time(0), bool allow_zero = true) 153 srand(seed); in allow_zero_() 192 ProductWeightGenerator(int seed = time(0), bool allow_zero = true) 193 : generator1_(seed, allow_zero), generator2_(seed, allow_zero) {} in generator1_() argument [all …]
|
/external/llvm/include/llvm/ADT/ |
D | Hashing.h | 190 inline uint64_t hash_1to3_bytes(const char *s, size_t len, uint64_t seed) { in hash_1to3_bytes() argument 196 return shift_mix(y * k2 ^ z * k3 ^ seed) * k2; in hash_1to3_bytes() 199 inline uint64_t hash_4to8_bytes(const char *s, size_t len, uint64_t seed) { in hash_4to8_bytes() argument 201 return hash_16_bytes(len + (a << 3), seed ^ fetch32(s + len - 4)); in hash_4to8_bytes() 204 inline uint64_t hash_9to16_bytes(const char *s, size_t len, uint64_t seed) { in hash_9to16_bytes() argument 207 return hash_16_bytes(seed ^ a, rotate(b + len, len)) ^ b; in hash_9to16_bytes() 210 inline uint64_t hash_17to32_bytes(const char *s, size_t len, uint64_t seed) { in hash_17to32_bytes() argument 215 return hash_16_bytes(rotate(a - b, 43) + rotate(c ^ seed, 30) + d, in hash_17to32_bytes() 216 a + rotate(b ^ k3, 20) - c + len + seed); in hash_17to32_bytes() 219 inline uint64_t hash_33to64_bytes(const char *s, size_t len, uint64_t seed) { in hash_33to64_bytes() argument [all …]
|
/external/guava/guava/src/com/google/common/hash/ |
D | Murmur3_32HashFunction.java | 51 private final int seed; field in Murmur3_32HashFunction 53 Murmur3_32HashFunction(int seed) { in Murmur3_32HashFunction() argument 54 this.seed = seed; in Murmur3_32HashFunction() 62 return new Murmur3_32Hasher(seed); in newHasher() 67 return "Hashing.murmur3_32(" + seed + ")"; in toString() 74 return seed == other.seed; in equals() 81 return getClass().hashCode() ^ seed; in hashCode() 86 int h1 = mixH1(seed, k1); in hashInt() 96 int h1 = mixH1(seed, k1); in hashLong() 106 int h1 = seed; in hashString() [all …]
|
D | Murmur3_128HashFunction.java | 45 private final int seed; field in Murmur3_128HashFunction 47 Murmur3_128HashFunction(int seed) { in Murmur3_128HashFunction() argument 48 this.seed = seed; in Murmur3_128HashFunction() 56 return new Murmur3_128Hasher(seed); in newHasher() 61 return "Hashing.murmur3_128(" + seed + ")"; in toString() 68 return seed == other.seed; in equals() 75 return getClass().hashCode() ^ seed; in hashCode() 86 Murmur3_128Hasher(int seed) { in Murmur3_128Hasher() argument 88 this.h1 = seed; in Murmur3_128Hasher() 89 this.h2 = seed; in Murmur3_128Hasher()
|
/external/deqp/framework/randomshaders/ |
D | rsgTest.cpp | 37 void runTest (deUint32 seed) in runTest() argument 39 printf("Seed: %d\n", seed); in runTest() 46 programParams.seed = seed; in runTest() 62 de::Random rnd(seed); in runTest() 72 string fileName = string("test-") + de::toString(seed) + ".png"; in runTest() 86 for (int seed = 0; seed < 10; seed++) in main() local 87 runTest(seed); in main()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_gpsk_common.c | 110 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_helper() argument 152 os_memcpy(pos, seed, seed_len); /* inputString */ in eap_gpsk_derive_keys_helper() 163 if (gkdf(mk, seed, seed_len, kdf_out, kdf_out_len) < 0) in eap_gpsk_derive_keys_helper() 189 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_aes() argument 217 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_aes() 225 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_sha256() argument 251 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_sha256() 286 u8 *seed, *pos; in eap_gpsk_derive_keys() local 298 seed = os_malloc(2 * EAP_GPSK_RAND_LEN + id_server_len + id_peer_len); in eap_gpsk_derive_keys() 299 if (seed == NULL) { in eap_gpsk_derive_keys() [all …]
|
/external/v8/test/perf-test/Collections/ |
D | base.js | 98 var seed = 49734321; 101 seed = ((seed + 0x7ed55d16) + (seed << 12)) & 0xffffffff; 102 seed = ((seed ^ 0xc761c23c) ^ (seed >>> 19)) & 0xffffffff; 103 seed = ((seed + 0x165667b1) + (seed << 5)) & 0xffffffff; 104 seed = ((seed + 0xd3a2646c) ^ (seed << 9)) & 0xffffffff; 105 seed = ((seed + 0xfd7046c5) + (seed << 3)) & 0xffffffff; 106 seed = ((seed ^ 0xb55a4f09) ^ (seed >>> 16)) & 0xffffffff; 107 return (seed & 0xfffffff) / 0x10000000;
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SpecialRandom.java | 37 private final long seed; field in SpecialRandom 41 this.seed = 0; in SpecialRandom() 44 public SpecialRandom(long seed) { in SpecialRandom() argument 45 super(seed); in SpecialRandom() 47 this.seed = seed; in SpecialRandom() 51 return hasSeed ? "(seed:" + seed : "(default seed)"; in toString()
|
/external/v8/test/mjsunit/regress/ |
D | regress-2612.js | 42 var seed = 1; variable 45 seed = seed * 171 % 1337 + 17; 46 return (seed % 1000) / 1000; 50 seed = seed * 131 % 1773 + 13; 51 return seed % max;
|