Home
last modified time | relevance | path

Searched refs:rand (Results 151 - 175 of 1119) sorted by relevance

12345678910>>...45

/third_party/skia/bench/
H A DSortBench.cpp20 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 },
H A DChecksumBench.cpp30 SkRandom rand; in ComputeChecksumBench() local
32 fData[i] = rand.nextU(); in ComputeChecksumBench()
H A DMatrixConvolutionBench.cpp62 SkRandom rand; variable
64 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400,
65 rand.nextUScalar1() * 400);
H A DBlurBench.cpp60 SkRandom rand; variable
62 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400,
63 rand.nextUScalar1() * 400);
/third_party/skia/docs/examples/
H A Dsweep_gradient_talk_lots.cpp6 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 Drand-f64.rs11 extern crate rand;
16 use rand::{IsaacRng, Rng, SeedableRng};
/kernel/linux/linux-6.6/kernel/rcu/
H A Drcutorture.c1369 static DEFINE_TORTURE_RANDOM(rand); in rcu_torture_writer()
1392 torture_hrtimeout_us(500, 1000, &rand); in rcu_torture_writer()
1398 udelay(torture_random(&rand) & 0x3ff); in rcu_torture_writer()
1444 switch (synctype[torture_random(&rand) % nsynctypes]) { in rcu_torture_writer()
1451 do_rtws_sync(&rand, cur_ops->exp_sync); in rcu_torture_writer()
1457 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); in rcu_torture_writer() local
1465 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); in rcu_torture_writer() local
1473 torture_hrtimeout_jiffies(torture_random(&rand) in rcu_torture_writer() local
1481 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); rcu_torture_writer() local
1502 &rand); rcu_torture_writer() local
1523 &rand); rcu_torture_writer() local
1533 &rand); rcu_torture_writer() local
1542 &rand); rcu_torture_writer() local
1633 torture_hrtimeout_jiffies(torture_random(&rand) % 10, &rand); rcu_torture_fakewriter() local
1646 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); rcu_torture_fakewriter() local
1651 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); rcu_torture_fakewriter() local
1656 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); rcu_torture_fakewriter() local
1661 torture_hrtimeout_jiffies(torture_random(&rand) % 16, &rand); rcu_torture_fakewriter() local
1668 &rand); rcu_torture_fakewriter() local
1675 &rand); rcu_torture_fakewriter() local
1682 &rand); rcu_torture_fakewriter() local
1689 &rand); rcu_torture_fakewriter() local
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_config.cpp347 bool BleConfig::SetLocalEdivRand(const std::string &section, 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 &section, 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...]
/third_party/mesa3d/src/util/tests/
H A Dfast_idiv_by_const_test.cpp197 int k = rand() % 64; in rand_uint()
199 return min + (rand() % 16); in rand_uint()
201 return u_uintN_max(bits) - (rand() % 16); in rand_uint()
205 r = 1ull << (rand() % bits); in rand_uint()
214 r |= ((uint64_t)rand() & 0xf) << i * 8; in rand_uint()
215 return r >> (63 - (rand() % bits)); in rand_uint()
229 if (rand() % 64 == 37) in rand_sint()
233 return rand() & 1 ? s : -s; in rand_sint()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/
H A Ddscr_explicit_test.c31 double ret = uniform_deviate(rand()); in dscr_explicit()
48 ret = uniform_deviate(rand()); in dscr_explicit()
/third_party/node/deps/npm/node_modules/@colors/colors/lib/custom/
H A Dtrap.js38 var rand = Math.floor(Math.random() * chars.length);
40 result += trap[c][rand];
/third_party/skia/gm/
H A Darcofzorro.cpp40 SkRandom rand; variable
52 SkColor color = rand.nextU();
H A Dstringart.cpp128 SkRandom rand; in init() local
133 SkScalar x = rand.nextF() * kWidth; in init()
134 SkScalar y = rand.nextF() * kHeight; in init()
H A Dperspshaders.cpp186 SkRandom rand; in make_path() local
187 auto rand_pt = [&rand]() { in make_path()
188 auto x = rand.nextF(); in make_path()
189 auto y = rand.nextF(); in make_path()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
H A Dmod.rs24 pub use self::rand::*;
60 mod rand; modules
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dadd_arc.cpp116 TestRend rand; in OnTestFunction() local
120 OH_Drawing_PenSetColor(pen, color_to_565(rand.nextU() | (0xFF << 24))); // 24颜色偏移 in OnTestFunction()
122 float startAngle = rand.nextUScalar1() * 360; in OnTestFunction()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tm-vsx.c119 fp_load[i] = 1 + rand(); in ptrace_tm_vsx()
120 fp_load_ckpt[i] = 1 + 2 * rand(); in ptrace_tm_vsx()
121 fp_load_ckpt_new[i] = 1 + 3 * rand(); in ptrace_tm_vsx()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tm-vsx.c120 fp_load[i] = 1 + rand(); in ptrace_tm_vsx()
121 fp_load_ckpt[i] = 1 + 2 * rand(); in ptrace_tm_vsx()
122 fp_load_ckpt_new[i] = 1 + 3 * rand(); in ptrace_tm_vsx()
/third_party/f2fs-tools/scripts/
H A Dspo_test.sh58 rand=$[($RANDOM % 540) + 60]
59 echo Start sleep: $rand seconds
60 sleep $rand
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_bbr.h57 ngtcp2_rand rand; member
114 ngtcp2_tstamp initial_ts, ngtcp2_rand rand,
122 ngtcp2_rand rand, const ngtcp2_rand_ctx *rand_ctx,
/third_party/skia/third_party/externals/swiftshader/tests/MathUnitTests/
H A Dunittests.cpp116 x += rand(); in TEST()
117 y += rand(); in TEST()
118 z += rand(); in TEST()
/third_party/skia/tests/
H A DParsePathTest.cpp79 SkRandom rand; in DEF_TEST() local
83 uint32_t count = rand.nextRangeU(0, 10); in DEF_TEST()
85 spec.append(MakeRandomParsePathPiece(&rand)); in DEF_TEST()
H A DChecksumTest.cpp17 SkRandom rand; in DEF_TEST() local
20 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST()
33 tweaked[j] = rand.nextU(); in DEF_TEST()
/third_party/rust/crates/unicode-ident/benches/
H A Dxid.rs25 use rand::distributions::{Bernoulli, Distribution, Uniform};
26 use rand::rngs::SmallRng;
27 use rand::SeedableRng;
/third_party/libwebsockets/minimal-examples/dbus-client/minimal-dbus-ws-proxy-testclient/
H A Dminimal-dbus-ws-proxy-testclient.c338 rand() & 0xffffff, rand() % 480, rand() % 300, in sul_timer()
339 rand() % 480, rand() % 300); in sul_timer()

Completed in 14 milliseconds

12345678910>>...45