/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
noise_gen_amrwb.cpp | 47 int16 * seed seed for the random ng 112 int16 noise_gen_amrwb(int16 * seed) 114 /* int16 seed = 21845; */ 115 *seed = (int16)fxp_mac_16by16(*seed, 31821, 13849L); 117 return (*seed);
|
/external/v8/tools/testrunner/utils/ |
random_utils.py | 9 """Returns random, non-zero seed.""" 10 seed = 0 11 while not seed: 12 seed = random.SystemRandom().randint(-2147483648, 2147483647) 13 return seed
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
random.c | 27 Word16 Random(Word16 * seed) 29 /* static Word16 seed = 21845; */ 30 *seed = (Word16)(L_add((L_mult(*seed, 31821) >> 1), 13849L)); 31 return (*seed);
|
/bionic/libc/bionic/ |
rand.cpp | 27 void srand(unsigned int seed) { 28 return srandom(seed);
|
/external/u-boot/net/ |
net_rand.h | 15 * Return a seed for the PRNG derived from the eth0 MAC address. 20 unsigned int seed; local 25 seed = enetaddr[5]; 26 seed ^= enetaddr[4] << 8; 27 seed ^= enetaddr[3] << 16; 28 seed ^= enetaddr[2] << 24; 29 seed ^= enetaddr[1]; 30 seed ^= enetaddr[0] << 8; 32 return seed; 36 * Seed the random number generator using the eth0 MAC address [all...] |
/external/webrtc/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/guava/guava-tests/test/com/google/common/collect/ |
SpecialRandom.java | 22 * Utility class for being able to seed a {@link Random} value with a passed 23 * in seed from a benchmark parameter. 37 private final long seed; field in class:SpecialRandom 41 this.seed = 0; 44 public SpecialRandom(long seed) { 45 super(seed); 47 this.seed = seed; 51 return hasSeed ? "(seed:" + seed : "(default seed)" [all...] |
/external/compiler-rt/test/msan/ |
rand_r.cc | 9 unsigned seed; local 11 seed = 42; 13 int v = rand_r(&seed);
|
/device/generic/goldfish/network/netmgr/ |
macaddress.h | 36 inline void hash_combine(size_t& seed, const T& value) { 38 seed ^= hasher(value) + 0x9e3779b9 + (seed << 6) + (seed >> 2); 44 size_t seed = 0; local 46 hash_combine(seed, *reinterpret_cast<const uint32_t*>(addr.addr)); 48 hash_combine(seed, *reinterpret_cast<const uint16_t*>(addr.addr + 4)); 49 return seed;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
DHValidationParameters.java | 7 private byte[] seed; field in class:DHValidationParameters 11 byte[] seed, 14 this.seed = Arrays.clone(seed); 25 return Arrays.clone(seed); 43 return Arrays.areEqual(this.seed, other.seed); 48 return counter ^ Arrays.hashCode(seed);
|
DSAValidationParameters.java | 8 private byte[] seed; field in class:DSAValidationParameters 12 byte[] seed, 15 this(seed, counter, -1); 19 byte[] seed, 23 this.seed = Arrays.clone(seed); 35 return Arrays.clone(seed); 45 return counter ^ Arrays.hashCode(seed); 63 return Arrays.areEqual(this.seed, other.seed); [all...] |
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
DHValidationParameters.java | 11 private byte[] seed; field in class:DHValidationParameters 15 byte[] seed, 18 this.seed = Arrays.clone(seed); 29 return Arrays.clone(seed); 47 return Arrays.areEqual(this.seed, other.seed); 52 return counter ^ Arrays.hashCode(seed);
|
DSAValidationParameters.java | 12 private byte[] seed; field in class:DSAValidationParameters 16 byte[] seed, 19 this(seed, counter, -1); 23 byte[] seed, 27 this.seed = Arrays.clone(seed); 39 return Arrays.clone(seed); 49 return counter ^ Arrays.hashCode(seed); 67 return Arrays.areEqual(this.seed, other.seed); [all...] |
/external/mesa3d/src/util/ |
rand_xor.h | 32 rand_xorshift128plus(uint64_t *seed); 35 s_rand_xorshift128plus(uint64_t *seed, bool randomised_seed);
|
rand_xor.c | 41 rand_xorshift128plus(uint64_t *seed) 43 uint64_t *s = seed; 55 s_rand_xorshift128plus(uint64_t *seed, bool randomised_seed) 66 if (read(fd, seed, seed_size) != seed_size) { 75 seed[0] = 0x3bffb83978e24f88; 76 seed[1] = time(NULL); 83 /* Fallback to a fixed seed */ 84 seed[0] = 0x3bffb83978e24f88; 85 seed[1] = 0x9238d5d56c71cd35;
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
rand_r.c | 46 rand_r(unsigned int *seed) 48 _DIAGASSERT(seed != NULL); 50 return ((*seed = *seed * 1103515245 + 12345) & RAND_MAX);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
JDKRandomGenerator.java | 34 public void setSeed(int seed) { 35 setSeed((long) seed); 39 public void setSeed(int[] seed) { 44 for (int s : seed) {
|
AbstractWell.java | 65 * seed.</p> 75 /** Creates a new random number generator using a single int seed. 80 * @param seed the initial seed (32 bits integer) 82 protected AbstractWell(final int k, final int m1, final int m2, final int m3, final int seed) { 83 this(k, m1, m2, m3, new int[] { seed }); 86 /** Creates a new random number generator using an int array seed. 91 * @param seed the initial seed (32 bits integers array), if null 92 * the seed of the generator will be related to the current tim [all...] |
/external/lz4/programs/ |
datagen.h | 29 void RDG_genOut(unsigned long long size, double matchProba, double litProba, unsigned seed); 30 void RDG_genBuffer(void* buffer, size_t size, double matchProba, double litProba, unsigned seed); 35 Generated data can be selected using 'seed'. 36 If (matchProba, litProba and seed) are equal, the function always generate the same content.
|
/external/elfutils/lib/ |
next_prime.c | 57 next_prime (size_t seed) 60 seed |= 1; 62 while (!is_prime (seed)) 63 seed += 2; 65 return seed;
|
/device/generic/goldfish/dhcp/server/ |
lease.h | 44 inline void hash_combine(size_t& seed, const T& value) { 46 seed ^= hasher(value) + 0x9e3779b9 + (seed << 6) + (seed >> 2); 52 size_t seed = 0; local 53 hash_combine(seed, lease.InterfaceIndex); 55 hash_combine(seed, *reinterpret_cast<const uint32_t*>(lease.MacAddress)); 57 hash_combine(seed, 59 return seed;
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
hash_util.h | 20 size_t HashCombine(size_t seed, const T& value) { 23 return seed ^ (std::hash<T>()(value) + (seed << 6) + (seed >> 2)); 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) [all...] |
/external/Reactive-Extensions/RxCpp/Rx/v2/examples/doxygen/ |
scan.cpp | 11 [](int seed, int v){ 12 return seed + v;
|
/external/u-boot/include/linux/ |
crc32.h | 14 #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)data, length)
|
/external/u-boot/lib/ |
rand.c | 28 void srand(unsigned int seed) 30 y = seed;
|