/external/stlport/test/eh/ |
random_number.cpp | 32 static EH_STD::subtractive_rng rnd; 34 return rnd(range);
|
/external/openssl/crypto/bn/ |
bn_depr.c | 73 BIGNUM *rnd=NULL; local 80 if ((rnd=BN_new()) == NULL) goto err; 83 rnd=ret; 84 if(!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) 90 if (!found && (ret == NULL) && (rnd != NULL)) BN_free(rnd); 91 return(found ? rnd : NULL);
|
bn_rand.c | 118 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) 126 BN_zero(rnd); 199 if (!BN_bin2bn(buf,bytes,rnd)) goto err; 207 bn_check_top(rnd); 211 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) 213 return bnrand(0, rnd, bits, top, bottom); 216 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) 218 return bnrand(1, rnd, bits, top, bottom); 222 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) 224 return bnrand(2, rnd, bits, top, bottom) [all...] |
bn_prime.c | 131 static int probable_prime(BIGNUM *rnd, int bits); 132 static int probable_prime_dh(BIGNUM *rnd, int bits, 134 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, 377 static int probable_prime(BIGNUM *rnd, int bits) 384 if (!BN_rand(rnd,bits,1,1)) return(0); 387 mods[i]=(prime_t)BN_mod_word(rnd,(BN_ULONG)primes[i]); 392 /* check that rnd is not a prime and also 393 * that gcd(rnd-1,primes) == 1 (except for 2) */ 401 if (!BN_add_word(rnd,delta)) return(0); 402 bn_check_top(rnd); [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
SortedMapTestBase.java | 46 Random rnd; field in class:SortedMapTestBase 49 rnd = new Random(-1); 51 ref.put(rnd.nextInt(N) * 2, rnd.nextBoolean() ? null : rnd.nextInt(N) * 2); 62 int key = rnd.nextInt(N); 70 int value = rnd.nextInt(N); 91 int key = rnd.nextInt(N); 103 if (rnd.nextBoolean()) { 113 int key = rnd.nextInt(N) [all...] |
/external/valgrind/main/coregrind/ |
vg_preloaded.c | 160 static int rnd = -1; local 163 if (rnd < 0) rnd = open("/dev/random", O_RDONLY); 165 read(rnd, &result, sizeof(result));
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
MediaPlayerInvokeTest.java | 38 private Random rnd; field in class:MediaPlayerInvokeTest 42 rnd = new Random(Calendar.getInstance().getTimeInMillis()); 66 int val = rnd.nextInt();
|
/external/openssl/crypto/rand/ |
rand_unix.c | 144 long rnd = 0; local 158 rnd = random (); 159 if (rnd == 1804289383) { 170 rnd = random(); 171 buf[i] = rnd; 172 rnd >>= 8; 182 u_int32_t rnd = 0, i; local 187 rnd = arc4random(); 188 buf[i] = rnd; 189 rnd >>= 8 [all...] |
/bionic/libc/bionic/ |
arc4random.c | 107 u_int rnd[128 / sizeof(u_int)]; member in union:__anon3 118 read(fd, rdat.rnd, sizeof(rdat.rnd)); 135 u_char rnd[128]; 145 len = sizeof(rnd); 146 sysctl(mib, 2, rnd, &len, NULL, 0); 149 arc4_addrandom(rnd, sizeof(rnd));
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
eap_fast_common.c | 106 u8 *rnd = NULL, *out; local 126 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 127 if (rnd == NULL) 130 os_memcpy(rnd, keys.server_random, keys.server_random_len); 131 os_memcpy(rnd + keys.server_random_len, keys.client_random, 137 label, rnd, keys.client_random_len + 140 os_free(rnd); 145 os_free(rnd);
|
/external/wpa_supplicant_8/src/eap_common/ |
eap_fast_common.c | 106 u8 *rnd = NULL, *out; local 126 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 127 if (rnd == NULL) 130 os_memcpy(rnd, keys.server_random, keys.server_random_len); 131 os_memcpy(rnd + keys.server_random_len, keys.client_random, 137 label, rnd, keys.client_random_len + 140 os_free(rnd); 145 os_free(rnd);
|
eap_pwd_common.c | 93 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; local 128 if (((rnd = BN_new()) == NULL) || 184 BN_bin2bn(pwe_digest, SHA256_DIGEST_LENGTH, rnd); 202 if (BN_is_odd(rnd)) 259 BN_free(rnd);
|
/external/dhcpcd/compat/ |
arc4random.c | 104 unsigned int rnd[(128 - sizeof(struct timeval)) / member in struct:__anon5249 112 n = read(fd, rdat.rnd, sizeof(rdat.rnd));
|
/external/openssl/android.testssl/ |
Uss.cnf | 6 RANDFILE = /sdcard/android.testssl/.rnd
|
CAss.cnf | 6 RANDFILE = /sdcard/android.testssl/.rnd
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
eap_tls_common.c | 70 u8 *rnd = NULL, *out; local 87 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 88 if (rnd == NULL) 90 os_memcpy(rnd, keys.client_random, keys.client_random_len); 91 os_memcpy(rnd + keys.client_random_len, keys.server_random, 95 label, rnd, keys.client_random_len + 99 os_free(rnd); 104 os_free(rnd);
|
eap_ttls.c | 324 u8 *challenge, *rnd; local 341 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 343 if (rnd == NULL || challenge == NULL) { 346 os_free(rnd); 350 os_memcpy(rnd, keys.server_random, keys.server_random_len); 351 os_memcpy(rnd + keys.server_random_len, keys.client_random, 355 "inner application challenge", rnd, 360 os_free(rnd); 365 os_free(rnd); 1375 u8 *rnd, *key; local [all...] |
/external/wpa_supplicant_8/src/eap_server/ |
eap_server_tls_common.c | 73 u8 *rnd = NULL, *out; local 90 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 91 if (rnd == NULL) 93 os_memcpy(rnd, keys.client_random, keys.client_random_len); 94 os_memcpy(rnd + keys.client_random_len, keys.server_random, 98 label, rnd, keys.client_random_len + 102 os_free(rnd); 107 os_free(rnd);
|
eap_server_ttls.c | 324 u8 *challenge, *rnd; local 341 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 343 if (rnd == NULL || challenge == NULL) { 346 os_free(rnd); 350 os_memcpy(rnd, keys.server_random, keys.server_random_len); 351 os_memcpy(rnd + keys.server_random_len, keys.client_random, 355 "inner application challenge", rnd, 360 os_free(rnd); 365 os_free(rnd); 1328 u8 *rnd, *key; local [all...] |
/external/quake/quake/src/QW/client/ |
cl_tent.c | 169 int rnd; local 202 rnd = rand() & 3; 203 if (rnd == 1) 205 else if (rnd == 2) 221 rnd = rand() & 3; 222 if (rnd == 1) 224 else if (rnd == 2)
|
/external/quake/quake/src/WinQuake/ |
cl_tent.cpp | 123 int rnd;
local 158 rnd = rand() & 3;
159 if (rnd == 1)
161 else if (rnd == 2)
177 rnd = rand() & 3;
178 if (rnd == 1)
180 else if (rnd == 2)
|
/external/valgrind/unittest/ |
old_test_suite.cc | 194 RandomGenerator rnd(shuffle_seed); 195 random_shuffle(tests_to_run.begin(), tests_to_run.end(), rnd);
|
/external/wpa_supplicant/ |
eap_tls_common.c | 236 u8 *rnd = NULL, *out; local 259 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 260 if (rnd == NULL) 262 os_memcpy(rnd, keys.client_random, keys.client_random_len); 263 os_memcpy(rnd + keys.client_random_len, keys.server_random, 267 label, rnd, keys.client_random_len + 271 os_free(rnd); 276 os_free(rnd);
|
/external/wpa_supplicant_8/src/eap_peer/ |
eap_tls_common.c | 268 u8 *rnd = NULL, *out; local 291 rnd = os_malloc(keys.client_random_len + keys.server_random_len); 292 if (rnd == NULL) 294 os_memcpy(rnd, keys.client_random, keys.client_random_len); 295 os_memcpy(rnd + keys.client_random_len, keys.server_random, 299 label, rnd, keys.client_random_len + 303 os_free(rnd); 308 os_free(rnd);
|
/sdk/sdkstats/src/com/android/sdkstats/ |
DdmsPreferenceStore.java | 169 Random rnd = new Random(); local 170 long id = rnd.nextLong();
|