Home
last modified time | relevance | path

Searched refs:rand (Results 176 - 200 of 1057) sorted by relevance

12345678910>>...43

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/strncpy/
H A D1-1.c44 output_string[i] = rand() % 254 + 1; in random_string()
62 num_bytes = rand() % i; in main()
/third_party/skia/third_party/externals/angle2/src/common/
H A DPoolAlloc_unittest.cpp42 numBytes = (rand() % (1024 * 4)) + 1; in TEST()
67 const size_t numBytes = rand() % (1024 * 4) + 1; in TEST_P()
/third_party/skia/tests/
H A DFloat16Test.cpp48 SkRandom rand; local
50 uint32_t bits = rand.nextU();
H A DSkPathRangeIterTest.cpp12 SkPoint next_point(SkRandom& rand) { return {rand.nextF(), rand.nextF()}; } in next_point() argument
H A DCullTestTest.cpp31 SkRandom rand; in DEF_TEST() local
45 int mask = rand.nextU(); in DEF_TEST()
/third_party/skia/gm/
H A Dimageblur2.cpp53 SkRandom rand; in DEF_SIMPLE_GM() local
55 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in DEF_SIMPLE_GM()
H A Dhittestpath.cpp46 SkRandom rand; in DEF_SIMPLE_GM_CAN_FAIL() local
53 randoms[index] = rand.nextUScalar1(); in DEF_SIMPLE_GM_CAN_FAIL()
/third_party/skia/bench/
H A DQuickRejectBench.cpp21 SkRandom rand; variable
23 fFloats[i] = 300.0f * (rand.nextSScalar1() + 0.5f);
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Despfix_64.c97 unsigned long rand = get_random_long(); in init_espfix_random() local
99 slot_random = rand % ESPFIX_STACKS_PER_PAGE; in init_espfix_random()
100 page_random = (rand / ESPFIX_STACKS_PER_PAGE) in init_espfix_random()
/test/ostest/wukong/input_factory/src/
H A Dappswitch_input.cpp133 index = WuKongUtil::GetInstance()->FindElement(bundlelist, allowlist.at(rand() % allowlist.size())); in GetAbilityIndex()
135 index = WuKongUtil::GetInstance()->FindElement(bundlelist, validlist.at(rand() % validlist.size())); in GetAbilityIndex()
137 index = rand() % bundlelist.size(); in GetAbilityIndex()
H A Dtouch_input.cpp63 int touchX = rand() % screenWidth; in RandomInput()
64 int touchY = rand() % screenHeight; in RandomInput()
H A Drotate_input.cpp46 uint32_t orientation = static_cast<uint32_t>((rand() % FOUR) + ONE); in OrderInput()
79 uint32_t orientation = static_cast<uint32_t>((rand() % FOUR) + ONE); in RandomInput()
/third_party/skia/src/effects/
H A DSkDiscretePathEffect.cpp21 linear equation. Unlike rand(), this class holds its own seed (initially
85 LCGRandom rand(seed ^ ((seed << 16) | (seed >> 16)));
113 Perterb(&p, v, rand.nextSScalar1() * scale);
119 Perterb(&p, v, rand.nextSScalar1() * scale);
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_bbr.c102 ngtcp2_rand rand, const ngtcp2_rand_ctx *rand_ctx, in ngtcp2_bbr_cc_init()
106 cc->rand = rand; in ngtcp2_bbr_cc_init()
116 ngtcp2_tstamp initial_ts, ngtcp2_rand rand, in ngtcp2_cc_bbr_cc_init()
126 ngtcp2_bbr_cc_init(bbr_cc, cstat, rst, initial_ts, rand, rand_ctx, log); in ngtcp2_cc_bbr_cc_init()
566 uint8_t rand; in bbr_enter_probe_bw() local
572 assert(cc->rand); in bbr_enter_probe_bw()
574 cc->rand(&rand, 1, &cc->rand_ctx); in bbr_enter_probe_bw()
576 cc->cycle_index = NGTCP2_BBR_GAIN_CYCLELEN - 1 - (size_t)(rand * in bbr_enter_probe_bw()
100 ngtcp2_bbr_cc_init(ngtcp2_bbr_cc *cc, ngtcp2_conn_stat *cstat, ngtcp2_rst *rst, ngtcp2_tstamp initial_ts, ngtcp2_rand rand, const ngtcp2_rand_ctx *rand_ctx, ngtcp2_log *log) ngtcp2_bbr_cc_init() argument
114 ngtcp2_cc_bbr_cc_init(ngtcp2_cc *cc, ngtcp2_log *log, ngtcp2_conn_stat *cstat, ngtcp2_rst *rst, ngtcp2_tstamp initial_ts, ngtcp2_rand rand, const ngtcp2_rand_ctx *rand_ctx, const ngtcp2_mem *mem) ngtcp2_cc_bbr_cc_init() argument
[all...]
H A Dngtcp2_bbr2.h65 ngtcp2_rand rand; member
143 ngtcp2_tstamp initial_ts, ngtcp2_rand rand,
/third_party/ltp/testcases/network/stress/ns-tools/
H A Dns-icmpv4_sender.c442 rand_val = rand() / ((RAND_MAX + 1U) / 16); in thrust_fakes()
450 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
458 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
466 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
478 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()
498 rand() / ((RAND_MAX + 1U) / 0x100); in thrust_fakes()
/kernel/linux/linux-5.10/tools/testing/selftests/sync/
H A Dsync_stress_merge.c64 timeline_offset = rand() % timeline_count; in test_merge_stress_random_merge()
66 sync_point = rand(); in test_merge_stress_random_merge()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-vsx.c69 fp_load[i] = i + rand(); in ptrace_vsx()
72 fp_load_new[i] = i + 2 * rand(); in ptrace_vsx()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-vsx.c69 fp_load[i] = i + rand(); in ptrace_vsx()
72 fp_load_new[i] = i + 2 * rand(); in ptrace_vsx()
/kernel/linux/linux-6.6/tools/testing/selftests/sync/
H A Dsync_stress_merge.c64 timeline_offset = rand() % timeline_count; in test_merge_stress_random_merge()
66 sync_point = rand(); in test_merge_stress_random_merge()
/third_party/libsnd/tests/
H A Ddwvw_test.c82 write_buf [k] = bit_mask & (arith_shift_left (rand (), 11) ^ (rand () >> 11)) ; in dwvw_test()
/third_party/mbedtls/programs/fuzz/
H A Dcommon.c79 output[i] = (unsigned char) rand(); in dummy_random()
94 output[i] = (unsigned char) rand(); in dummy_entropy()
/third_party/ltp/testcases/cve/
H A Dcve-2017-17052.c56 usleep(rand() % 10000); in fork_thread()
76 usleep(rand() % 10000); in do_test_fork()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/strchr/
H A D1-1.c49 output_string[i] = rand() % 254 + 1; in random_string()
70 char_pos = rand() % i; in main()
/third_party/skia/samplecode/
H A DSampleMegaStroke.cpp19 SkRandom rand; in MegaStrokeView() local
23 fMegaPath.lineTo(SkIntToScalar(index), SkIntToScalar(rand.nextRangeU(500, 600))); in MegaStrokeView()

Completed in 10 milliseconds

12345678910>>...43