/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/template.bitset/bitset.members/ |
right_shift_eq.pass.cpp | 24 v[i] = static_cast<bool>(std::rand() & 1);
|
test.pass.cpp | 24 v[i] = static_cast<bool>(std::rand() & 1);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/template.bitset/bitset.operators/ |
op_and.pass.cpp | 24 v[i] = static_cast<bool>(std::rand() & 1);
|
op_not.pass.cpp | 24 v[i] = static_cast<bool>(std::rand() & 1);
|
op_or.pass.cpp | 24 v[i] = static_cast<bool>(std::rand() & 1);
|
/system/extras/tests/bionic/libstdc++/ |
test_cstdlib.cpp | 86 using ::rand;
|
/external/webrtc/src/system_wrappers/source/ |
list_unittest.cc | 341 CreateDescendingList(rand()%2)); 347 CreateAscendingList(rand()%2)); 353 ListWrapperSimple::Create(rand()%2)); 364 ListWrapperSimple::Create(rand()%2)); 375 scoped_ptr<ListWrapperSimple> ascending_list(CreateAscendingList(rand()%2)); 390 CreateAscendingList(rand()%2)); 395 CreateDescendingList(rand()%2)); 428 CreateInterleavedList(rand()%2)); 437 CreateDescendingList(rand()%2)); 441 scoped_ptr<ListWrapperSimple> ascending_list(CreateAscendingList(rand()%2)) [all...] |
/external/chromium_org/native_client_sdk/src/examples/demo/pi_generator/ |
pi_generator.cc | 42 double x = static_cast<double>(rand()) / RAND_MAX; 43 double y = static_cast<double>(rand()) / RAND_MAX;
|
/external/chromium_org/net/quic/crypto/ |
crypto_secret_boxer.cc | 34 string CryptoSecretBoxer::Box(QuicRandom* rand, StringPiece plaintext) const { 41 rand->RandBytes(data, kBoxNonceSize);
|
strike_register_test.cc | 260 if (rand() % 1000 == 0) { 262 max_entries = rand() % 300 + 2; 263 current_time = rand() % 10000; 264 window = rand() % 500; 271 int32 time_delta = rand() % (window * 4); 282 const uint32 v = rand() % 2048;
|
crypto_server_config.cc | 52 QuicRandom* rand) 72 rand->RandBytes(server_nonce_orbit_, sizeof(server_nonce_orbit_)); 75 rand->RandBytes(key_bytes.get(), key_size); 87 QuicRandom* rand, 93 Curve25519KeyExchange::NewPrivateKey(rand); 133 rand->RandBytes(scid_bytes, sizeof(scid_bytes)); 144 rand->RandBytes(orbit_bytes, sizeof(orbit_bytes)); 201 QuicRandom* rand, 205 DefaultConfig(rand, clock, options)); 311 QuicRandom* rand, [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
mnkytst.cpp | 80 int32_t s = checkValue(rand() % source.length()); 81 int32_t t = checkValue(rand() % source.length()); 82 int32_t slen = checkValue((rand() - source.length()) % source.length()); 83 int32_t tlen = checkValue((rand() - source.length()) % source.length()); 155 int32_t s = checkValue(rand() % source.length()); 156 int32_t t = checkValue(rand() % source.length()); 157 int32_t slen = checkValue((rand() - source.length()) % source.length()); 158 int32_t tlen = checkValue((rand() - source.length()) % source.length());
|
/external/icu4c/test/intltest/ |
mnkytst.cpp | 80 int32_t s = checkValue(rand() % source.length()); 81 int32_t t = checkValue(rand() % source.length()); 82 int32_t slen = checkValue((rand() - source.length()) % source.length()); 83 int32_t tlen = checkValue((rand() - source.length()) % source.length()); 155 int32_t s = checkValue(rand() % source.length()); 156 int32_t t = checkValue(rand() % source.length()); 157 int32_t slen = checkValue((rand() - source.length()) % source.length()); 158 int32_t tlen = checkValue((rand() - source.length()) % source.length());
|
/external/skia/bench/ |
ChecksumBench.cpp | 33 SkRandom rand; local 35 fData[i] = rand.nextU();
|
RectBench.cpp | 30 SkRandom rand; local 33 int x = rand.nextU() % W; 34 int y = rand.nextU() % H; 35 int w = rand.nextU() % W; 36 int h = rand.nextU() % H; 44 fColors[i] = rand.nextU() | 0xFF808080; 249 SkRandom rand; local 277 alpha = rand.nextU() & 255;
|
/external/skia/gm/ |
getpostextpath.cpp | 54 SkRandom rand; local 58 pos[i].set(x, y + rand.nextSScalar1() * 24);
|
nested.cpp | 76 SkMWCRandom rand; variable 84 p.setColor(rand.nextU() | 0xFF000000);
|
/external/skia/tests/ |
ColorFilterTest.cpp | 38 SkMWCRandom rand; local 41 SkColor color = rand.nextU();
|
PictureTest.cpp | 77 static void rand_rect(SkRect* rect, SkMWCRandom& rand, SkScalar W, SkScalar H) { 78 rect->fLeft = rand.nextRangeScalar(-W, 2*W); 79 rect->fTop = rand.nextRangeScalar(-H, 2*H); 80 rect->fRight = rect->fLeft + rand.nextRangeScalar(0, W); 81 rect->fBottom = rect->fTop + rand.nextRangeScalar(0, H); 180 SkMWCRandom rand; local 203 rand_rect(&r, rand, 2*W, 2*H); 265 static void rand_op(SkCanvas* canvas, SkMWCRandom& rand) { 269 SkScalar unit = rand.nextUScalar1(); 286 SkMWCRandom rand; local [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
eap_pax.c | 31 u8 x[EAP_PAX_RAND_LEN]; /* server rand */ 32 u8 y[EAP_PAX_RAND_LEN]; /* client rand */ 34 } rand; member in struct:eap_pax_data 161 os_memcpy(data->rand.r.x, pos, EAP_PAX_RAND_LEN); 162 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: X (server rand)", 163 data->rand.r.x, EAP_PAX_RAND_LEN); 172 if (random_get_bytes(data->rand.r.y, EAP_PAX_RAND_LEN)) { 177 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: Y (client rand)", 178 data->rand.r.y, EAP_PAX_RAND_LEN); 180 if (eap_pax_initial_key_derivation(req->mac_id, data->ak, data->rand.e [all...] |
eap_sim.c | 34 u8 rand[3][GSM_RAND_LEN]; member in struct:eap_sim_data 158 if (scard_gsm_auth(sm->scard_ctx, data->rand[0], 160 scard_gsm_auth(sm->scard_ctx, data->rand[1], 163 scard_gsm_auth(sm->scard_ctx, data->rand[2], 196 if (gsm_milenage(opc, k, data->rand[i], 203 wpa_hexdump(MSG_DEBUG, "EAP-SIM: RAND", 204 data->rand[i], GSM_RAND_LEN); 215 /* These hardcoded Kc and SRES values are used for testing. RAND to 226 if (data->rand[i][0] == 0xaa) { 232 } else if (data->rand[i][0] == 0xbb) [all...] |
/external/bluetooth/bluedroid/stack/btm/ |
btm_ble_addr.c | 127 /* generate 3B rand as BD LSB, SRK with it, get BD MSB */ 276 UINT8 rand[3]; local 280 rand[0] = p_mgnt_cb->random_bda[2]; 281 rand[1] = p_mgnt_cb->random_bda[1]; 282 rand[2] = p_mgnt_cb->random_bda[0]; 297 &rand[0], 3, &output);
|
/external/chromium_org/third_party/sqlite/src/tool/ |
speedtest2.tcl | 122 set r [expr {int(rand()*500000)}] 139 set r [expr {int(rand()*500000)}] 156 set r [expr {int(rand()*500000)}] 173 set r [expr {int(rand()*500000)}] 190 set r [expr {int(rand()*500000)}]
|
/external/libvorbis/examples/ |
seeking_example.c | 138 ogg_int64_t val=(double)rand()/RAND_MAX*length; 157 ogg_int64_t val=(double)rand()/RAND_MAX*pcmlength; 176 ogg_int64_t val=(double)rand()/RAND_MAX*pcmlength; 200 double val=(double)rand()/RAND_MAX*timelength; 219 double val=(double)rand()/RAND_MAX*timelength;
|
/external/dropbear/ |
random.c | 210 * rand must be an initialised *mp_int for the result. 211 * the result rand satisfies: 0 < rand < max 213 void gen_random_mpint(mp_int *max, mp_int *rand) { 233 bytes_to_mp(rand, randbuf, len); 236 * 0 < rand < max */ 237 } while (mp_cmp(rand, max) != MP_LT);
|