Home
last modified time | relevance | path

Searched refs:seed (Results 1 – 25 of 686) sorted by relevance

12345678910>>...28

/external/deqp/modules/gles2/functional/
Des2fRandomShaderTests.cpp38 …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/deqp/modules/gles3/functional/
Des3fRandomShaderTests.cpp39 …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/apache-commons-math/src/main/java/org/apache/commons/math/random/
DAbstractWell.java82 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 …]
DMersenneTwister.java114 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/wycheproof/java/com/google/security/wycheproof/
DRandomUtil.java38 protected static long nextState(long seed) { in nextState() argument
39 return (seed * A + C) & ((1L << 48) - 1); in nextState()
43 protected static long step(long seed, long n) { in step() argument
49 seed = seed * a + c; in step()
55 return seed & 0xffffffffffffL; in step()
59 protected static long previousState(long seed) { in previousState() argument
60 return ((seed - C) * A_INVERSE) & ((1L << 48) - 1); in previousState()
64 protected static long getSeedForState(long seed) { in getSeedForState() argument
65 return seed ^ A; in getSeedForState()
68 protected static long getStateForSeed(long seed) { in getStateForSeed() argument
[all …]
/external/v8/benchmarks/
Dbase.js87 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/
Drand.c46 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 …]
Dbloom.c22 unsigned int seed; member
26 static uint32_t bloom_crc32c(const void *buf, uint32_t len, uint32_t seed) in bloom_crc32c() argument
31 static uint32_t bloom_fnv(const void *buf, uint32_t len, uint32_t seed) in bloom_fnv() argument
33 return fnv(buf, len, seed); in bloom_fnv()
40 .seed = BLOOM_SEED,
44 .seed = BLOOM_SEED,
48 .seed = BLOOM_SEED,
52 .seed = BLOOM_SEED,
56 .seed = BLOOM_SEED,
98 hash[i] = hashes[i].fn(data, nwords, hashes[i].seed); in __bloom_check()
/external/v8/src/base/utils/
Drandom-number-generator.cc34 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/webrtc/webrtc/common_audio/signal_processing/
Drandomization_functions.c93 static uint32_t IncreaseSeed(uint32_t* seed) { in IncreaseSeed() argument
94 seed[0] = (seed[0] * ((int32_t)69069) + 1) & (kMaxSeedUsed - 1); in IncreaseSeed()
95 return seed[0]; in IncreaseSeed()
98 int16_t WebRtcSpl_RandU(uint32_t* seed) { in WebRtcSpl_RandU() argument
99 return (int16_t)(IncreaseSeed(seed) >> 16); in WebRtcSpl_RandU()
102 int16_t WebRtcSpl_RandN(uint32_t* seed) { in WebRtcSpl_RandN() argument
103 return kRandNTable[IncreaseSeed(seed) >> 23]; in WebRtcSpl_RandN()
109 uint32_t* seed) { in WebRtcSpl_RandUArray() argument
112 vector[i] = WebRtcSpl_RandU(seed); in WebRtcSpl_RandUArray()
/external/libdrm/
Dxf86drmRandom.c82 void *drmRandomCreate(unsigned long seed) in drmRandomCreate() argument
103 state->seed = seed; in drmRandomCreate()
106 if (state->seed <= 0) state->seed = 1; in drmRandomCreate()
107 if (state->seed >= state->m) state->seed = state->m - 1; in drmRandomCreate()
124 hi = s->seed / s->q; in drmRandom()
125 lo = s->seed % s->q; in drmRandom()
126 s->seed = s->a * lo - s->r * hi; in drmRandom()
127 if ((s->a * lo) <= (s->r * hi)) s->seed += s->m; in drmRandom()
129 return s->seed; in drmRandom()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DDSAValidationParameters.java8 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()
DDHValidationParameters.java7 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/lz4/programs/
Ddatagen.c88 static BYTE RDG_genChar(U32* seed, const litDistribTable lt) in RDG_genChar() argument
90 U32 id = RDG_rand(seed) & LTMASK; in RDG_genChar()
96 #define RDG_RAND15BITS ((RDG_rand(seed) >> 3) & 32767)
97 #define RDG_RANDLENGTH ( ((RDG_rand(seed) >> 7) & 7) ? (RDG_rand(seed) & 15) : (RDG_rand(seed) & 5…
103 U32* seed = seedPtr; in RDG_genBlock() local
108 size_t size0 = RDG_rand(seed) & 3; in RDG_genBlock()
110 size0 += RDG_rand(seed) & (size0-1); /* because size0 is power of 2*/ in RDG_genBlock()
118 buffPtr[pos-1] = RDG_genChar(seed, lt); in RDG_genBlock()
122 if (pos==0) buffPtr[0] = RDG_genChar(seed, lt), pos=1; in RDG_genBlock()
148 while (pos < d) buffPtr[pos++] = RDG_genChar(seed, lt); in RDG_genBlock()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DValidationParams.java26 private DERBitString seed; field in ValidationParams
48 public ValidationParams(byte[] seed, int pgenCounter) in ValidationParams() argument
50 if (seed == null) in ValidationParams()
55 this.seed = new DERBitString(seed); in ValidationParams()
59 public ValidationParams(DERBitString seed, ASN1Integer pgenCounter) in ValidationParams() argument
61 if (seed == null) in ValidationParams()
70 this.seed = seed; in ValidationParams()
81 this.seed = DERBitString.getInstance(seq.getObjectAt(0)); in ValidationParams()
87 return this.seed.getBytes(); in getSeed()
98 v.add(this.seed); in toASN1Primitive()
/external/llvm/include/llvm/ADT/
DHashing.h190 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/
DMurmur3_32HashFunction.java51 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 hashUnencodedChars()
[all …]
DMurmur3_128HashFunction.java45 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/wpa_supplicant_8/src/eap_common/
Deap_gpsk_common.c111 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_helper() argument
153 os_memcpy(pos, seed, seed_len); /* inputString */ in eap_gpsk_derive_keys_helper()
164 if (gkdf(mk, seed, seed_len, kdf_out, kdf_out_len) < 0) in eap_gpsk_derive_keys_helper()
190 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_aes() argument
218 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_aes()
226 const u8 *seed, size_t seed_len, in eap_gpsk_derive_keys_sha256() argument
252 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_sha256()
287 u8 *seed, *pos; in eap_gpsk_derive_keys() local
299 seed = os_malloc(2 * EAP_GPSK_RAND_LEN + id_server_len + id_peer_len); in eap_gpsk_derive_keys()
300 if (seed == NULL) { in eap_gpsk_derive_keys()
[all …]
/external/deqp/framework/randomshaders/
DrsgTest.cpp37 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/llvm/lib/Fuzzer/test/
Dfuzzer-dfsan.test11 RUN: not LLVMFuzzer-SimpleCmpTest-DFSan -use_traces=1 -seed=1 -runs=10000000 -timeout=5 2>&1 | File…
12 RUN: LLVMFuzzer-SimpleCmpTest-DFSan -use_traces=1 -seed=1 -runs=100 -timeout=5 -verbosity=3 2>&1 | …
14 RUN: not LLVMFuzzer-MemcmpTest-DFSan -use_traces=1 -seed=1 -runs=100000 -timeout=5 2>&1 | FileCheck…
15 RUN: LLVMFuzzer-MemcmpTest-DFSan -use_traces=1 -seed=1 -runs=2 -timeout=5 -verbosity=3 2>&1 | FileC…
17 RUN: not LLVMFuzzer-StrncmpTest-DFSan -use_traces=1 -seed=1 -runs=10000 -timeout=5 2>&1 | FileCheck…
18 RUN: LLVMFuzzer-StrncmpTest-DFSan -use_traces=1 -seed=1 -runs=2 -timeout=5 -verbosity=3 2>&1 | File…
20 RUN: not LLVMFuzzer-StrcmpTest-DFSan -use_traces=1 -seed=1 -runs=10000 -timeout=5 2>&1 | FileCheck …
21 RUN: LLVMFuzzer-StrcmpTest-DFSan -use_traces=1 -seed=1 -runs=2 -timeout=5 -verbosity=3 2>&1…
23 RUN: not LLVMFuzzer-SwitchTest-DFSan -use_traces=1 -seed=1 -runs=100000 -timeout=5 2>&…
24 RUN: LLVMFuzzer-SwitchTest-DFSan -use_traces=1 -seed=1 -runs=2 -timeout=5 -verbosity=3 2>&1…
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDSAParametersGenerator.java127 byte[] seed = new byte[20]; in generateParameters_FIPS186_2()
143 random.nextBytes(seed); in generateParameters_FIPS186_2()
145 hash(digest, seed, part1, 0); in generateParameters_FIPS186_2()
146 System.arraycopy(seed, 0, part2, 0, seed.length); in generateParameters_FIPS186_2()
165 byte[] offset = Arrays.clone(seed); in generateParameters_FIPS186_2()
200 return new DSAParameters(p, q, g, new DSAValidationParameters(seed, counter)); in generateParameters_FIPS186_2()
240 byte[] seed = new byte[seedlen / 8]; in generateParameters_FIPS186_3()
253 random.nextBytes(seed); in generateParameters_FIPS186_3()
256 hash(d, seed, output, 0); in generateParameters_FIPS186_3()
272 byte[] offset = Arrays.clone(seed); in generateParameters_FIPS186_3()
[all …]
/external/fio/crc/
Dxxhash.c165 static uint32_t XXH32_endian_align(const void* input, int len, uint32_t seed, XXH_endianess endian,… in XXH32_endian_align() argument
178 uint32_t v1 = seed + PRIME32_1 + PRIME32_2; in XXH32_endian_align()
179 uint32_t v2 = seed + PRIME32_2; in XXH32_endian_align()
180 uint32_t v3 = seed + 0; in XXH32_endian_align()
181 uint32_t v4 = seed - PRIME32_1; in XXH32_endian_align()
195 h32 = seed + PRIME32_5; in XXH32_endian_align()
224 uint32_t XXH32(const void* input, uint32_t len, uint32_t seed) in XXH32() argument
228 void* state = XXH32_init(seed); in XXH32()
238 return XXH32_endian_align(input, len, seed, XXH_littleEndian, XXH_aligned); in XXH32()
240 return XXH32_endian_align(input, len, seed, XXH_bigEndian, XXH_aligned); in XXH32()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DSpecialRandom.java37 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/src/base/
Dfunctional.cc71 size_t hash_combine(size_t seed, size_t value) { in hash_combine() argument
80 seed ^= value; in hash_combine()
81 seed = bits::RotateRight32(seed, 13); in hash_combine()
82 seed = seed * 5 + 0xe6546b64; in hash_combine()
91 seed ^= value; in hash_combine()
92 seed *= m; in hash_combine()
94 return seed; in hash_combine()

12345678910>>...28