/external/openssl/crypto/dsa/ |
dsa_gen.c | 138 unsigned char seed[SHA256_DIGEST_LENGTH]; local 164 /* NB: seed_len == 0 is special case: copy generated seed to 168 seed_in = NULL; /* seed buffer too small -- ignore */ 170 seed_len = qsize; /* App. 2.2 of FIPS PUB 186 allows larger SEED, 173 memcpy(seed, seed_in, seed_len); 206 RAND_pseudo_bytes(seed, qsize); 212 seed_len=0; /* use random seed if 'seed_in' turns out to be bad*/ 214 memcpy(buf , seed, qsize); 215 memcpy(buf2, seed, qsize); 216 /* precompute "SEED + 1" for step 7: * [all...] |
/external/elfutils/lib/ |
next_prime.c | 77 next_prime (size_t seed) 80 seed |= 1; 82 while (!is_prime (seed)) 83 seed += 2; 85 return seed;
|
/external/v8/benchmarks/spinning-balls/ |
v.js | 136 var seed = 49734321; 139 seed = ((seed + 0x7ed55d16) + (seed << 12)) & 0xffffffff; 140 seed = ((seed ^ 0xc761c23c) ^ (seed >>> 19)) & 0xffffffff; 141 seed = ((seed + 0x165667b1) + (seed << 5)) & 0xffffffff [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/parallel/ |
random_number.h | 72 /** @brief Default constructor. Seed with 0. */ 81 * @param seed Random seed. 84 random_number(uint32 seed, uint64 supremum = 0x100000000ULL) 85 : mt(seed), supremum(supremum),
|
/system/extras/tests/ext4/ |
rand_emmc_perf.c | 47 unsigned int seed; local 95 if (read(fd2, &seed, sizeof(seed)) != sizeof(seed)) { 99 srand(seed);
|
/external/e2fsprogs/lib/ext2fs/ |
dirhash.c | 181 * The seed is an 4 longword (32 bits) "secret" which can be used to 182 * uniquify a hash. If the seed is all zero's, then some default seed 185 * A particular hash version specifies whether or not the seed is 190 const __u32 *seed, 201 /* Initialize the default seed for the hash checksum functions */ 207 /* Check to see if the seed is all zero's */ 208 if (seed) { 210 if (seed[i]) 214 memcpy(buf, seed, sizeof(buf)) [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
ThreadLocalRandom.java | 15 * with an internally generated seed that may not otherwise be 43 * The random seed. We can't use super.seed. 50 * since it would cause setting seed in one part of a program to 55 // Padding to help avoid memory contention among seed updates in 94 public void setSeed(long seed) { 97 rnd = (seed ^ multiplier) & mask;
|
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_sync_test.cc | 34 unsigned seed = 0; local 36 uintptr_t addr = rand_r(&seed) % (kRange - 1) + 1; 37 if (rand_r(&seed) % 2) {
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
FaultHeightMap.java | 77 private long seed; // A seed to feed the random
field in class:FaultHeightMap 99 * @param seed A seed to feed the Random generator
102 public FaultHeightMap(int size, int iterations, int faultType, int faultShape, float minFaultHeight, float maxFaultHeight, long seed) throws Exception {
112 this.seed = seed;
139 Random random = new Random(seed);
320 return seed;
323 public void setSeed(long seed) {
[all...] |
MidpointDisplacementHeightMap.java | 50 private long seed; // seed for random number generator
field in class:MidpointDisplacementHeightMap 73 * @param seed
74 * A seed to feed the random number generator.
77 public MidpointDisplacementHeightMap(int size, float range, float persistence, long seed) throws Exception {
85 this.seed = seed;
124 Random random = new Random(seed);
267 return seed;
270 public void setSeed(long seed) {
[all...] |
/external/openfst/src/bin/ |
fstrandgen.cc | 26 DEFINE_int32(seed, time(0), "Random seed"); 51 VLOG(1) << argv[0] << ": Seed = " << FLAGS_seed;
|
/external/regex-re2/re2/testing/ |
exhaustive_tester.h | 49 void RandomStrings(int32 seed, int32 count) { 51 stringseed_ = seed; 64 int32 stringseed_; // If so, the seed.
|
/external/webkit/Source/JavaScriptCore/runtime/ |
WeakRandom.h | 60 WeakRandom(unsigned seed) 61 : m_low(seed ^ 0x49616E42) 62 , m_high(seed)
|
/external/webkit/Source/WebKit/chromium/tests/ |
PODIntervalTreeTest.cpp | 220 void InsertionAndDeletionTest(int32_t seed, int treeSize) 222 initRandom(seed); 245 ASSERT_TRUE(tree.contains(addedElements[index])) << "Test failed for seed " << seed; 249 ASSERT_TRUE(tree.checkInvariants()) << "Test failed for seed " << seed; 273 ASSERT_TRUE(tree.contains(addedElements[index])) << "Test failed for seed " << seed; 274 ASSERT_TRUE(tree.remove(addedElements[index])) << "Test failed for seed " << seed; [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SecureRandom2Test.java | 116 byte[] seed = new SecureRandom().generateSeed(SEED_SIZE); 117 assertEquals("seed has incorrect size", SEED_SIZE, seed.length); 177 byte[] seed = SecureRandom.getSeed(SEED_SIZE); 178 assertEquals("seed has incorrect size", SEED_SIZE, seed.length); 216 fail("seed generation with bytes failed : " + e); 235 fail("seed generation with long failed : " + e); 298 * with the same seed, should return the same results.<p> 320 * seed always returns the same value, even across VM restarts [all...] |
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
db_utilities_random.h | 37 \param r seed 53 \param r seed 73 \param r_seed random number generator seed
|
/packages/apps/Gallery2/jni_mosaic/feature_stab/db_vlvm/ |
db_utilities_random.h | 37 \param r seed 53 \param r seed 73 \param r_seed random number generator seed
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
db_utilities_random.h | 37 \param r seed 53 \param r seed 73 \param r_seed random number generator seed
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
SHA1PRNG_SecureRandomTest.java | 123 * being supplied with the same seed return the same sequencies of bytes 188 * being supplied with seed by themselves return different sequencies of bytes 335 * it checks out that "setSeed(byte[])" method supplements its argument to current seed 336 * rather than replaces current seed 341 byte[] seed = new byte[LENGTH]; 346 for (int i = 0; i < seed.length; i++) { 347 seed[i] = (byte)i; 350 sr.setSeed(seed); 351 sr.setSeed(seed); 352 sr2.setSeed(seed); [all...] |
/external/libyuv/files/source/ |
compare.cc | 28 // hash seed of 5381 recommended. 30 static uint32 HashDjb2_C(const uint8* src, int count, uint32 seed) { 31 uint32 hash = seed; 76 static uint32 HashDjb2_SSE41(const uint8* src, int count, uint32 seed) { 80 movd xmm0, [esp + 12] // seed 160 static uint32 HashDjb2_SSE41(const uint8* src, int count, uint32 seed) { 202 "+rm"(seed), // %2 218 // hash seed of 5381 recommended. 220 uint32 HashDjb2(const uint8* src, uint64 count, uint32 seed) { 221 uint32 (*HashDjb2_SSE)(const uint8* src, int count, uint32 seed) = HashDjb2_C [all...] |
/external/freetype/src/psaux/ |
psconv.h | 63 FT_UShort* seed );
|
/external/iptables/extensions/ |
libxt_cluster.man | 17 \fB\-\-cluster\-hash\-seed\fP \fIvalue\fP 18 Set seed value of the Jenkins hash. 24 \-\-cluster\-hash\-seed 0xdeadbeef 29 \-\-cluster\-hash\-seed 0xdeadbeef
|
/external/openfst/src/include/fst/ |
randequivalent.h | 119 // of length no more than 'path_length' using the seed 'seed' in these FSTs. 124 int seed = time(0), int path_length = INT_MAX, 126 UniformArcSelector<Arc> uniform_selector(seed);
|
/external/ppp/pppd/ |
magic.c | 62 * Attempts to compute a random number seed which will not repeat. 69 long seed; local 73 seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec ^ getpid(); 74 srand48(seed);
|
/external/regex-re2/util/ |
util.h | 119 static inline uint32 Hash32StringWithSeed(const char* s, int len, uint32 seed) { 120 return hashword((uint32*)s, len/4, seed); 123 static inline uint64 Hash64StringWithSeed(const char* s, int len, uint32 seed) { 125 x = seed;
|