Home
last modified time | relevance | path

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

12345678910>>...95

/external/libxml2/
DAndroid.bp254 cmd: "mkdir -p $(genDir)/fuzz/seed/schema && " +
260 "fuzz/seed/schema/570702_0.xsd",
261 "fuzz/seed/schema/579746_0.xsd",
262 "fuzz/seed/schema/579746_1.xsd",
263 "fuzz/seed/schema/582887_0.xsd",
264 "fuzz/seed/schema/582887-attribute.xsd",
265 "fuzz/seed/schema/582887-common.xsd",
266 "fuzz/seed/schema/582887-element.xsd",
267 "fuzz/seed/schema/582906-1_0.xsd",
268 "fuzz/seed/schema/582906-1-common.xsd",
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcert-msc51-cpp.cpp6 void srand(int seed);
11 void seed(int _ = 0);
22 void seed(int _ = 0);
29 void seed(int _ = 0);
37 void seed();
38 void seed(int _);
46 void seed();
47 void seed(int _);
55 void seed();
56 void seed(int _);
[all …]
/external/oboe/samples/RhythmGame/third_party/glm/gtx/
Dhash.inl16 GLM_INLINE void hash_combine(size_t &seed, size_t hash) argument
18 hash += 0x9e3779b9 + (seed << 6) + (seed >> 2);
19 seed ^= hash;
35 size_t seed = 0; local
37 glm::detail::hash_combine(seed, hasher(v.x));
38 glm::detail::hash_combine(seed, hasher(v.y));
39 return seed;
45 size_t seed = 0; local
47 glm::detail::hash_combine(seed, hasher(v.x));
48 glm::detail::hash_combine(seed, hasher(v.y));
[all …]
/external/bc/tests/bc/scripts/
Drand.bc4 seed = x
5 seed@20
6 return seed
11 seed@20
13 seed@20
18 seed = x
19 seed@20
24 seed@20
31 return seed
37 s == seed
[all …]
/external/skia/src/opts/
DSkChecksum_opts.h21 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { return _mm_crc32_u8(seed, v); } in crc32c_1() argument
22 static uint32_t crc32c_8(uint32_t seed, uint64_t v) { in crc32c_8() argument
24 return _mm_crc32_u64(seed, v); in crc32c_8()
26 seed = _mm_crc32_u32(seed, (uint32_t)(v )); in crc32c_8()
27 return _mm_crc32_u32(seed, (uint32_t)(v >> 32)); in crc32c_8()
32 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { return __crc32cb(seed, v); } in crc32c_1() argument
33 static uint32_t crc32c_8(uint32_t seed, uint64_t v) { return __crc32cd(seed, v); } in crc32c_8() argument
86 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { in crc32c_1() argument
87 return crc32c_table[(seed ^ v) & 0xff] in crc32c_1()
88 ^ (seed >> 8); in crc32c_1()
[all …]
/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/libxml2/fuzz/
DMakefile.am5 seed/uri
28 corpus: seed/html.stamp seed/schema.stamp seed/xml.stamp seed/xpath.stamp
35 rm -rf seed/html.stamp seed/html
36 rm -rf seed/schema.stamp seed/schema
37 rm -rf seed/xml.stamp seed/xml
38 rm -rf seed/xpath.stamp seed/xpath
46 seed/xml.stamp: genSeed$(EXEEXT)
47 @mkdir -p seed/xml
49 @touch seed/xml.stamp
54 fuzz-xml: xml$(EXEEXT) seed/xml.stamp
[all …]
/external/rust/crates/oorandom/src/
Dlib.rs48 pub fn new(seed: u64) -> Self { in new()
49 Self::new_inc(seed, Self::DEFAULT_INC) in new()
59 pub fn new_inc(seed: u64, increment: u64) -> Self { in new_inc()
67 rng.state = rng.state.wrapping_add(seed); in new_inc()
179 pub fn new(seed: u128) -> Self { in new()
180 Self::new_inc(seed, Self::DEFAULT_INC) in new()
184 pub fn new_inc(seed: u128, increment: u128) -> Self { in new_inc()
190 rng.state = rng.state.wrapping_add(seed); in new_inc()
273 let seed = 54321; in test_rand32_vs_randomize() localVariable
274 let mut r1 = Rand32::new(seed); in test_rand32_vs_randomize()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/random/
Dstateless_random_ops_test.py108 def wrap(op, dtype, shape, shape_dtype, kwds, seed): argument
116 return op(seed=seed, shape=shape_, dtype=dtype, **kwds)
139 def wrap(op, minval, maxval, shape, shape_dtype, dtype, seed): argument
143 seed=seed, shape=shape_, minval=minval, maxval=maxval, dtype=dtype)
160 def wrap(op, logits, logits_dtype, output_dtype, seed): argument
161 return op(seed=seed,
176 def wrap(op, alpha, dtype, shape, seed): argument
177 return op(seed=seed, shape=shape,
189 def wrap(op, lam, lam_dtype, out_dtype, shape, seed): argument
190 return op(seed=seed, shape=shape,
[all …]
/external/tensorflow/tensorflow/python/keras/initializers/
Dinitializers_v2.py271 def __init__(self, minval=-0.05, maxval=0.05, seed=None): argument
274 self.seed = seed
275 self._random_generator = _RandomGenerator(seed)
302 'seed': self.seed
334 def __init__(self, mean=0.0, stddev=0.05, seed=None): argument
337 self.seed = seed
338 self._random_generator = _RandomGenerator(seed)
362 'seed': self.seed
399 def __init__(self, mean=0.0, stddev=0.05, seed=None): argument
402 self.seed = seed
[all …]
Dinitializers_v1.py46 def __init__(self, mean=0.0, stddev=0.05, seed=None, dtype=dtypes.float32): argument
48 mean=mean, stddev=stddev, seed=seed, dtype=dtype)
56 def __init__(self, minval=-0.05, maxval=0.05, seed=None, argument
59 minval=minval, maxval=maxval, seed=seed, dtype=dtype)
66 def __init__(self, mean=0.0, stddev=0.05, seed=None, dtype=dtypes.float32): argument
68 mean=mean, stddev=stddev, seed=seed, dtype=dtype)
74 def __init__(self, seed=None): argument
76 scale=1., mode='fan_in', distribution='truncated_normal', seed=seed)
79 return {'seed': self.seed}
85 def __init__(self, seed=None): argument
[all …]
/external/tensorflow/tensorflow/python/ops/
Dinit_ops_v2.py329 def __init__(self, minval=-0.05, maxval=0.05, seed=None): argument
332 self.seed = seed
333 self._random_generator = _RandomGenerator(seed)
360 "seed": self.seed
397 def __init__(self, mean=0.0, stddev=0.05, seed=None): argument
400 self.seed = seed
401 self._random_generator = _RandomGenerator(seed)
426 "seed": self.seed
466 def __init__(self, mean=0.0, stddev=0.05, seed=None): argument
469 self.seed = seed
[all …]
Dstateless_random_ops.py55 def split(seed, num=2): argument
82 seed = ops.convert_to_tensor(seed)
83 return stateless_random_uniform(shape=[num, 2], seed=seed, dtype=seed.dtype,
89 def fold_in(seed, data): argument
121 seed1 = stateless_random_uniform(shape=[], seed=seed, dtype=data.dtype,
126 def _get_key_counter_alg(seed): argument
129 seed)
134 seed)
140 seed, argument
213 [shape, seed, minval, maxval]) as name:
[all …]
Dcandidate_sampling_ops.py37 range_max, seed=None, name=None): argument
85 seed1, seed2 = random_seed.get_seed(seed)
87 true_classes, num_true, num_sampled, unique, range_max, seed=seed1,
100 range_max, seed=None, name=None): argument
151 seed1, seed2 = random_seed.get_seed(seed)
153 true_classes, num_true, num_sampled, unique, range_max, seed=seed1,
163 unique, range_max, seed=None, name=None): argument
212 seed1, seed2 = random_seed.get_seed(seed)
214 true_classes, num_true, num_sampled, unique, range_max, seed=seed1,
232 seed=None, argument
[all …]
Dinit_ops.py259 def __init__(self, minval=0, maxval=None, seed=None, dtype=dtypes.float32): argument
262 self.seed = seed
269 shape, self.minval, self.maxval, dtype, seed=self.seed)
275 "seed": self.seed,
299 def __init__(self, mean=0.0, stddev=1.0, seed=None, dtype=dtypes.float32): argument
302 self.seed = seed
309 shape, self.mean, self.stddev, dtype, seed=self.seed)
315 "seed": self.seed,
345 def __init__(self, mean=0.0, stddev=1.0, seed=None, dtype=dtypes.float32): argument
348 self.seed = seed
[all …]
Drandom_ops.py51 seed=None, argument
93 seed1, seed2 = random_seed.get_seed(seed)
95 shape_tensor, dtype, seed=seed1, seed2=seed2)
111 seed=None, argument
146 seed1, seed2 = random_seed.get_seed(seed)
153 seed=seed1,
167 seed=None, argument
202 seed1, seed2 = random_seed.get_seed(seed)
204 shape_tensor, dtype, seed=seed1, seed2=seed2)
222 seed=None, argument
[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/libchrome/mojo/public/cpp/bindings/lib/
Dhash_util.h20 size_t HashCombine(size_t seed, const T& value) { in HashCombine() argument
23 return seed ^ (std::hash<T>()(value) + (seed << 6) + (seed >> 2)); in HashCombine()
42 size_t Hash(size_t seed, const T& value);
46 static size_t Hash(size_t seed, const T& value) { return value.Hash(seed); }
51 static size_t Hash(size_t seed, const T& value) {
52 return HashCombine(seed, value);
58 static size_t Hash(size_t seed, const std::vector<T>& value) {
60 seed = HashCombine(seed, element);
62 return seed;
68 static size_t Hash(size_t seed, const base::Optional<std::vector<T>>& value) {
[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/scapy/scapy/layers/tls/crypto/
Dprf.py22 def _tls_P_hash(secret, seed, req_len, hm): argument
43 a = hm(secret).digest(seed) # A(1)
46 res += hm(secret).digest(a + raw(seed))
53 def _tls_P_MD5(secret, seed, req_len): argument
54 return _tls_P_hash(secret, seed, req_len, _tls_hmac_algs["HMAC-MD5"])
56 def _tls_P_SHA1(secret, seed, req_len): argument
57 return _tls_P_hash(secret, seed, req_len, _tls_hmac_algs["HMAC-SHA"])
59 def _tls_P_SHA256(secret, seed, req_len): argument
60 return _tls_P_hash(secret, seed, req_len, _tls_hmac_algs["HMAC-SHA256"])
62 def _tls_P_SHA384(secret, seed, req_len): argument
[all …]
/external/zstd/tests/
Ddecodecorpus.c93 static void RAND_bufferMaxSymb(U32* seed, void* ptr, size_t size, int maxSymb) in RAND_bufferMaxSymb() argument
99 op[i] = (BYTE) (RAND(seed) % (maxSymb + 1)); in RAND_bufferMaxSymb()
104 static void RAND_buffer(U32* seed, void* ptr, size_t size) in RAND_buffer() argument
110 MEM_writeLE32(op + i, RAND(seed)); in RAND_buffer()
113 op[i] = RAND(seed) & 0xff; in RAND_buffer()
118 static void RAND_bufferDist(U32* seed, BYTE* dist, void* ptr, size_t size) in RAND_bufferDist() argument
124 op[i] = dist[RAND(seed) % DISTSIZE]; in RAND_bufferDist()
131 static void RAND_genDist(U32* seed, BYTE* dist, double weight) in RAND_genDist() argument
135 BYTE symb = (BYTE) (RAND(seed) % 256); in RAND_genDist()
136 …BYTE step = (BYTE) ((RAND(seed) % 256) | 1); /* force it to be odd so it's relatively prime to 256… in RAND_genDist()
[all …]
/external/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.c83 drm_public void *drmRandomCreate(unsigned long seed) in drmRandomCreate() argument
104 state->seed = seed; in drmRandomCreate()
107 if (state->seed <= 0) state->seed = 1; in drmRandomCreate()
108 if (state->seed >= state->m) state->seed = state->m - 1; in drmRandomCreate()
125 hi = s->seed / s->q; in drmRandom()
126 lo = s->seed % s->q; in drmRandom()
127 s->seed = s->a * lo - s->r * hi; in drmRandom()
128 if ((s->a * lo) <= (s->r * hi)) s->seed += s->m; in drmRandom()
130 return s->seed; in drmRandom()

12345678910>>...95