/third_party/skia/tests/ |
H A D | GeometryTest.cpp | 63 SkRandom rand; in testChopCubic() local 65 SkPoint pts[4] = {{rand.nextF(), rand.nextF()}, {rand.nextF(), rand.nextF()}, in testChopCubic() 66 {rand.nextF(), rand.nextF()}, {rand.nextF(), rand.nextF()}}; in testChopCubic() 130 SkRandom rand; in test_evalquadat() local 169 SkRandom rand; test_conic() local [all...] |
H A D | OverAlignedTest.cpp | 15 SkRandom rand; in DEF_TEST() local 18 void* p = sk_malloc_throw(rand.nextRangeU(0,100)); in DEF_TEST()
|
H A D | GpuRectanizerTest.cpp | 61 SkRandom rand; in DEF_GPUTEST() local 64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST() 65 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
|
/third_party/skia/gm/ |
H A D | addarc.cpp | 46 SkRandom rand; variable 50 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); 51 SkScalar startAngle = rand.nextUScalar1() * 360; 135 SkRandom rand; variable 142 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); 186 SkRandom rand; variable 195 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24)));
|
H A D | runtimeshader.cpp | 109 SkRandom rand; in make_threshold() local 111 SkScalar x = rand.nextF() * size.width(); in make_threshold() 112 SkScalar y = rand.nextF() * size.height(); in make_threshold() 557 SkRandom rand(2); 565 rand.nextU() | 0xff808080); 571 rand.nextU() | 0xff808080); 577 rand.nextU() | 0xff808080); 583 rand.nextU() | 0xff808080); 589 rand.nextU() | 0xff808080); 595 rand [all...] |
H A D | discard.cpp | 63 SkRandom rand; variable 68 SkColor color = ToolUtils::color_to_565(rand.nextU() | 0xFF404040); 69 switch (rand.nextULessThan(3)) {
|
H A D | degeneratesegments.cpp | 302 SkRandom rand; variable 322 StyleAndName style = gStyles[(rand.nextU() >> 16) % numStyles]; 323 CapAndName cap = gCaps[(rand.nextU() >> 16) % numCaps]; 324 FillAndName fill = gFills[(rand.nextU() >> 16) % numFills]; 325 unsigned s1 = (rand.nextU() >> 16) % numSegments; 326 unsigned s2 = (rand.nextU() >> 16) % numSegments; 327 unsigned s3 = (rand.nextU() >> 16) % numSegments; 328 unsigned s4 = (rand.nextU() >> 16) % numSegments; 329 unsigned s5 = (rand.nextU() >> 16) % numSegments;
|
H A D | polygons.cpp | 96 static void SetColorAndAlpha(SkPaint* paint, SkRandom* rand) { in SetColorAndAlpha() argument 97 SkColor color = rand->nextU(); in SetColorAndAlpha() 121 SkRandom rand; variable 130 SetColorAndAlpha(&paint, &rand); 154 SetColorAndAlpha(&paint, &rand);
|
/third_party/skia/bench/ |
H A D | ShapesBench.cpp | 150 SkRandom rand; variable 155 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), 156 0.5f * pad + rand.nextF() * (kBenchHeight - pad)); 157 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); 162 fShapes[i].fColor = rand.nextU() | 0xff808080; 169 shapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); 173 innerShapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType);
|
H A D | ColorPrivBench.cpp | 29 SkRandom rand; variable 31 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); 32 fDsts[i] = SkPreMultiplyColor(rand.nextU());
|
H A D | MorphologyBench.cpp | 59 SkRandom rand; variable 61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, 62 rand.nextUScalar1() * 400);
|
H A D | SortBench.cpp | 20 SkRandom rand; in rand_proc() local 22 array[i] = rand.nextS(); in rand_proc() 27 SkRandom rand; in randN_proc() local 30 array[i] = rand.nextU() % mod; in randN_proc() 62 { "rand", rand_proc },
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/ |
H A D | UnicodeMapTest.java | 124 Random rand = new Random(0); in TestAMonkey() 129 switch(rand.nextInt(20)) { in TestAMonkey() 136 fillRandomMap(rand, 5, test); in TestAMonkey() 142 other = getRandomKey(rand); in TestAMonkey() 157 other = getRandomKey(rand); in TestAMonkey() 158 value = rand.nextInt(50)+50; in TestAMonkey() 169 * @param rand 174 private SortedMap<String, Integer> fillRandomMap(Random rand, int max, SortedMap<String, Integer> test) { in fillRandomMap() argument 176 max = rand.nextInt(max); in fillRandomMap() 178 test.put(getRandomKey(rand), ran in fillRandomMap() 248 getRandomKey(Random rand) getRandomKey() argument [all...] |
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
H A D | UnicodeMapTest.java | 121 Random rand = new Random(0); in TestAMonkey() 126 switch(rand.nextInt(20)) { in TestAMonkey() 133 fillRandomMap(rand, 5, test); in TestAMonkey() 139 other = getRandomKey(rand); in TestAMonkey() 154 other = getRandomKey(rand); in TestAMonkey() 155 value = rand.nextInt(50)+50; in TestAMonkey() 166 * @param rand 171 private SortedMap<String, Integer> fillRandomMap(Random rand, int max, SortedMap<String, Integer> test) { in fillRandomMap() argument 173 max = rand.nextInt(max); in fillRandomMap() 175 test.put(getRandomKey(rand), ran in fillRandomMap() 245 getRandomKey(Random rand) getRandomKey() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
H A D | eap_server_pax.c | 31 u8 x[EAP_PAX_RAND_LEN]; /* server rand */ 32 u8 y[EAP_PAX_RAND_LEN]; /* client rand */ 34 } rand; member 81 if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) { in eap_pax_build_std_1() 105 wpabuf_put_data(req, data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1() 106 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: A = X (server rand)", in eap_pax_build_std_1() 107 data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1() 153 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_build_std_3() 333 os_memcpy(data->rand.r.y, pos, EAP_PAX_RAND_LEN); in eap_pax_process_std_2() 334 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: Y (client rand)", in eap_pax_process_std_2() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
H A D | eap_server_pax.c | 31 u8 x[EAP_PAX_RAND_LEN]; /* server rand */ 32 u8 y[EAP_PAX_RAND_LEN]; /* client rand */ 34 } rand; member 81 if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) { in eap_pax_build_std_1() 105 wpabuf_put_data(req, data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1() 106 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: A = X (server rand)", in eap_pax_build_std_1() 107 data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1() 153 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_build_std_3() 333 os_memcpy(data->rand.r.y, pos, EAP_PAX_RAND_LEN); in eap_pax_process_std_2() 334 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: Y (client rand)", in eap_pax_process_std_2() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_sim.c | 34 u8 rand[3][GSM_RAND_LEN]; member 179 pos += wpa_snprintf_hex(pos, end - pos, data->rand[i], in eap_sim_ext_sim_req() 209 data->rand[i], GSM_RAND_LEN); in eap_sim_ext_sim_result() 261 if (scard_gsm_auth(sm->scard_ctx, data->rand[0], in eap_sim_gsm_auth() 263 scard_gsm_auth(sm->scard_ctx, data->rand[1], in eap_sim_gsm_auth() 266 scard_gsm_auth(sm->scard_ctx, data->rand[2], in eap_sim_gsm_auth() 300 if (gsm_milenage(opc, k, data->rand[i], in eap_sim_gsm_auth() 308 data->rand[i], GSM_RAND_LEN); in eap_sim_gsm_auth() 330 if (data->rand[i][0] == 0xaa) { in eap_sim_gsm_auth() 336 } else if (data->rand[ in eap_sim_gsm_auth() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_sim.c | 34 u8 rand[3][GSM_RAND_LEN]; member 181 pos += wpa_snprintf_hex(pos, end - pos, data->rand[i], in eap_sim_ext_sim_req() 211 data->rand[i], GSM_RAND_LEN); in eap_sim_ext_sim_result() 263 if (scard_gsm_auth(sm->scard_ctx, data->rand[0], in eap_sim_gsm_auth() 265 scard_gsm_auth(sm->scard_ctx, data->rand[1], in eap_sim_gsm_auth() 268 scard_gsm_auth(sm->scard_ctx, data->rand[2], in eap_sim_gsm_auth() 302 if (gsm_milenage(opc, k, data->rand[i], in eap_sim_gsm_auth() 310 data->rand[i], GSM_RAND_LEN); in eap_sim_gsm_auth() 332 if (data->rand[i][0] == 0xaa) { in eap_sim_gsm_auth() 338 } else if (data->rand[ in eap_sim_gsm_auth() [all...] |
/third_party/pulseaudio/src/tests/ |
H A D | smoother-test.c | 55 msec[u] = m+1 + (rand() % 100) - 50; in START_TEST() 56 msec[u+1] = m + (rand() % 2000) - 1000 + 5000; in START_TEST() 58 m += rand() % 100; in START_TEST()
|
/third_party/libdrm/tests/exynos/ |
H A D | exynos_fimg2d_event.c | 158 x = rand() % img->width; in g2d_work() 159 y = rand() % img->height; in g2d_work() 166 w = rand() % (img->width - x); in g2d_work() 167 h = rand() % (img->height - y); in g2d_work() 172 img->color = rand(); in g2d_work()
|
/third_party/jerryscript/jerry-main/ |
H A D | benchmarking.c | 53 int rand (void); 56 * Useless but stable rand implementation. Returns 4. Ensures that test cases 59 int rand (void) in rand() function 62 } /* rand */ in rand()
|
/third_party/rust/crates/rustix/src/rand/ |
H A D | getrandom.rs | 4 pub use backend::rand::types::GetRandomFlags; 9 /// users should prefer to use [`getrandom`] or [`rand`] APIs instead. 12 /// [`rand`]: https://crates.io/crates/rand 20 backend::rand::syscalls::getrandom(buf, flags) in getrandom()
|
/third_party/skia/docs/examples/ |
H A D | sweep_gradient_talk_lots.cpp | 6 SkRandom rand; in REG_FIDDLE() local 9 color = rand.nextU() | (0xFF << 24); in REG_FIDDLE()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/ |
H A D | rand-f64.rs | 11 extern crate rand; 16 use rand::{IsaacRng, Rng, SeedableRng};
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
H A D | ble_config.cpp | 347 bool BleConfig::SetLocalEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const in SetLocalEdivRand() 356 ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_RAND, rand); in SetLocalEdivRand() 358 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble local rand failed!"); in SetLocalEdivRand() 419 bool BleConfig::SetPeerEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const in SetPeerEdivRand() 428 ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_PEER_RAND, rand); in SetPeerEdivRand() 430 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble peer rand failed!"); in SetPeerEdivRand() 525 std::string rand; in GetLocalRand() local 526 bool ret = config_->GetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_RAND, rand); in GetLocalRand() 528 LOG_DEBUG("[BleConfig] %{public}s:%{public}s", __func__, "Get ble local rand failed!"); in GetLocalRand() 530 return rand; in GetLocalRand() 585 std::string rand; GetPeerRand() local [all...] |