/external/libopus/celt/tests/ |
test_unit_entropy.c | 64 unsigned int seed; local 70 fprintf(stderr, "Usage: %s [<seed>]\n", _argv[0]); 73 env_seed = getenv("SEED"); 75 seed = atoi(_argv[1]); 77 seed = atoi(env_seed); 79 seed = time(NULL); 166 srand(seed); 167 fprintf(stderr,"Testing random streams... Random seed: %u (%.4X)\n", seed, rand() % 65536); 195 fprintf(stderr,"ec_tell() changed after ec_enc_done(): %i instead of %i (Random seed: %u)\n" [all...] |
/external/chromium_org/third_party/skia/include/utils/ |
SkRandom.h | 16 linear equation. Unlike rand(), this class holds its own seed (initially 22 SkLCGRandom(uint32_t seed) : fSeed(seed) {} 132 * Return the current seed. This allows the caller to later reset to the 133 * same seed (using setSeed) so it can generate the same sequence. 137 /** Set the seed of the random object. The seed is initialized to 0 when the 141 void setSeed(int32_t seed) { fSeed = (uint32_t)seed; } 163 SkRandom(uint32_t seed) { init(seed); [all...] |
/external/skia/include/utils/ |
SkRandom.h | 16 linear equation. Unlike rand(), this class holds its own seed (initially 22 SkLCGRandom(uint32_t seed) : fSeed(seed) {} 132 * Return the current seed. This allows the caller to later reset to the 133 * same seed (using setSeed) so it can generate the same sequence. 137 /** Set the seed of the random object. The seed is initialized to 0 when the 141 void setSeed(int32_t seed) { fSeed = (uint32_t)seed; } 163 SkRandom(uint32_t seed) { init(seed); [all...] |
/external/chromium_org/third_party/webrtc/common_audio/signal_processing/ |
randomization_functions.c | 93 static uint32_t IncreaseSeed(uint32_t* seed) { 94 seed[0] = (seed[0] * ((int32_t)69069) + 1) & (kMaxSeedUsed - 1); 95 return seed[0]; 98 int16_t WebRtcSpl_RandU(uint32_t* seed) { 99 return (int16_t)(IncreaseSeed(seed) >> 16); 102 int16_t WebRtcSpl_RandN(uint32_t* seed) { 103 return kRandNTable[IncreaseSeed(seed) >> 23]; 109 uint32_t* seed) { 112 vector[i] = WebRtcSpl_RandU(seed); [all...] |
/external/webrtc/src/common_audio/signal_processing/ |
randomization_functions.c | 92 WebRtc_UWord32 WebRtcSpl_IncreaseSeed(WebRtc_UWord32 *seed) 94 seed[0] = (seed[0] * ((WebRtc_Word32)69069) + 1) & (WEBRTC_SPL_MAX_SEED_USED - 1); 95 return seed[0]; 98 WebRtc_Word16 WebRtcSpl_RandU(WebRtc_UWord32 *seed) 100 return (WebRtc_Word16)(WebRtcSpl_IncreaseSeed(seed) >> 16); 103 WebRtc_Word16 WebRtcSpl_RandN(WebRtc_UWord32 *seed) 105 return kRandNTable[WebRtcSpl_IncreaseSeed(seed) >> 23]; 111 WebRtc_UWord32* seed) 116 vector[i] = WebRtcSpl_RandU(seed); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
CalendarTest.java | 136 * @param seed A number used to generate the values 140 String account, int seed) { 141 String seedString = Long.toString(seed); 155 values.put(Calendars.CALENDAR_ACCESS_LEVEL, (seed % 8) * 100); 157 values.put(Calendars.CALENDAR_COLOR, 0xff000000 + seed); 158 values.put(Calendars.VISIBLE, seed % 2); 161 values.put(Calendars.CALENDAR_TIME_ZONE, TIME_ZONES[seed % TIME_ZONES.length]); 162 values.put(Calendars.CAN_ORGANIZER_RESPOND, seed % 2); 163 values.put(Calendars.CAN_MODIFY_TIME_ZONE, seed % 2); 183 ContentValues original, int seed) { 922 int seed = 0; local 938 int seed = 0; local 997 int seed = 0; local 1129 int seed = 0; local 1170 int seed = 0; local 1320 int seed = 0; local 1494 int seed = 0; local 1519 int seed = 0; local 1617 int seed = 0; local 1734 int seed = 0; local 1873 int seed = 0; local 1978 int seed = 0; local 2059 int seed = 0; local 2158 int seed = 0; local 2198 int seed = 0; local 2246 int seed = 0; local 2288 int seed = 0; local 2333 int seed = 0; local 2416 int seed = 0; local 2453 int seed = 0; local 2495 int seed = 0; local 2682 int seed = 0; local 2775 int seed = 0; local 2944 int seed = 0; local 3040 int seed = 0; local 3096 int seed = 0; local 3122 int seed = 0; local 3151 int seed = 0; local 3199 int seed = 0; local 3248 int seed = 0; local 3546 int seed = 0; local [all...] |
/external/jemalloc/include/jemalloc/internal/ |
hash.h | 22 uint32_t hash_x86_32(const void *key, int len, uint32_t seed); 23 void hash_x86_128(const void *key, const int len, uint32_t seed, 25 void hash_x64_128(const void *key, const int len, const uint32_t seed, 27 void hash(const void *key, size_t len, const uint32_t seed, 88 hash_x86_32(const void *key, int len, uint32_t seed) 93 uint32_t h1 = seed; 139 hash_x86_128(const void *key, const int len, uint32_t seed, 145 uint32_t h1 = seed; 146 uint32_t h2 = seed; 147 uint32_t h3 = seed; [all...] |
/external/speex/libspeex/ |
scal.c | 68 int seed; member in struct:SpeexDecorrState_ 106 st->seed = rand(); 119 static float uni_rand(int *seed) 124 *seed = 1664525 * *seed + 1013904223; 125 ran.i = jflone | (jflmsk & *seed); 130 static unsigned int irand(int *seed) 132 *seed = 1664525 * *seed + 1013904223; 133 return ((unsigned int)*seed)>>16 [all...] |
/external/llvm/include/llvm/ADT/ |
Hashing.h | 128 /// \brief Override the execution seed with a fixed value. 130 /// This hashing library uses a per-execution seed designed to change on each 137 /// which will forcibly set the seed to a fixed value. This must be done at the 196 inline uint64_t hash_1to3_bytes(const char *s, size_t len, uint64_t seed) { 202 return shift_mix(y * k2 ^ z * k3 ^ seed) * k2; 205 inline uint64_t hash_4to8_bytes(const char *s, size_t len, uint64_t seed) { 207 return hash_16_bytes(len + (a << 3), seed ^ fetch32(s + len - 4)); 210 inline uint64_t hash_9to16_bytes(const char *s, size_t len, uint64_t seed) { 213 return hash_16_bytes(seed ^ a, rotate(b + len, len)) ^ b; 216 inline uint64_t hash_17to32_bytes(const char *s, size_t len, uint64_t seed) { 335 static size_t seed = fixed_seed_override ? fixed_seed_override local 411 const size_t seed = get_execution_seed(); local 455 const size_t seed = get_execution_seed(); local 505 const size_t seed; member in struct:llvm::hashing::detail::hash_combine_recursive_helper 724 const uint64_t seed = get_execution_seed(); local [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
SecureRandom_ImplTest.java | 123 byte[] seed = { 1, 2, 3, 4 }; 124 sr.setSeed(seed); 131 byte[] seed = SecureRandom.getSeed(5); 132 new SecureRandom(seed).nextBytes(new byte[20]); 137 byte[] seed = sr.generateSeed(5); 138 new SecureRandom(seed).nextBytes(new byte[20]);
|
/external/apache-http/src/org/apache/http/util/ |
LangUtils.java | 51 public static int hashCode(final int seed, final int hashcode) { 52 return seed * HASH_OFFSET + hashcode; 55 public static int hashCode(final int seed, final boolean b) { 56 return hashCode(seed, b ? 1 : 0); 59 public static int hashCode(final int seed, final Object obj) { 60 return hashCode(seed, obj != null ? obj.hashCode() : 0);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
RandomPhrase.java | 47 * java org.antlr.tool.RandomPhrase grammarFile.g startRule [seed] 52 * The seed acts like a unique identifier so you can get the same random 55 * If you do not specify a seed then the current time in milliseconds is used 56 * guaranteeing that you'll never see that seed again. 147 long seed = System.currentTimeMillis(); // use random seed unless spec. local 150 seed = Long.parseLong(seedStr); 153 random = new Random(seed); 221 System.err.println("Error walking "+grammarFileName+" rule "+startRule+" seed "+seed); [all...] |
/external/arduino/hardware/arduino/cores/arduino/ |
WMath.cpp | 30 void randomSeed(unsigned int seed) 32 if (seed != 0) { 33 srandom(seed);
|
/external/chromium_org/chrome/browser/prefs/ |
pref_hash_store_impl.h | 34 // |seed| and |device_id| and stores them in |contents|. 36 // The same |seed| and |device_id| must be used to load and validate 38 PrefHashStoreImpl(const std::string& seed,
|
/external/chromium_org/components/variations/ |
variations_seed_processor.h | 23 // Helper class to instantiate field trials from a variations seed. 29 // Creates field trials from the specified variations |seed|, based on the 32 void CreateTrialsFromSeed(const VariationsSeed& seed,
|
/external/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/ |
seed_result_type.pass.cpp | 15 // void seed(result_type s = default_seed); 28 e2.seed(s); 41 e2.seed(s);
|
seed_sseq.pass.cpp | 15 // template<class Sseq> void seed(Sseq& q); 28 e1.seed(sseq); 40 e1.seed(sseq);
|
/external/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/ |
seed_result_type.pass.cpp | 15 // void seed(result_type s = default_seed); 28 e2.seed(s); 41 e2.seed(s);
|
seed_sseq.pass.cpp | 15 // template<class Sseq> void seed(Sseq& q); 28 e1.seed(sseq); 40 e1.seed(sseq);
|
/external/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/ |
seed_result_type.pass.cpp | 17 // void seed(result_type s = default_seed); 30 e2.seed(s); 43 e2.seed(s);
|
seed_sseq.pass.cpp | 17 // template<class Sseq> void seed(Sseq& q); 30 e1.seed(sseq); 42 e1.seed(sseq);
|
/external/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/ |
seed_result_type.pass.cpp | 15 // void seed(result_type s = default_seed); 28 e2.seed(s); 41 e2.seed(s);
|
seed_sseq.pass.cpp | 15 // template<class Sseq> void seed(Sseq& q); 28 e1.seed(sseq); 40 e1.seed(sseq);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/ |
seed_result_type.pass.cpp | 15 // void seed(result_type s = default_seed); 28 e2.seed(s); 41 e2.seed(s);
|
seed_sseq.pass.cpp | 15 // template<class Sseq> void seed(Sseq& q); 28 e1.seed(sseq); 40 e1.seed(sseq);
|