/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/strncpy/ |
H A D | 1-1.c | 44 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 D | PoolAlloc_unittest.cpp | 42 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 D | Float16Test.cpp | 48 SkRandom rand; local 50 uint32_t bits = rand.nextU();
|
H A D | SkPathRangeIterTest.cpp | 12 SkPoint next_point(SkRandom& rand) { return {rand.nextF(), rand.nextF()}; } in next_point() argument
|
H A D | CullTestTest.cpp | 31 SkRandom rand; in DEF_TEST() local 45 int mask = rand.nextU(); in DEF_TEST()
|
/third_party/skia/gm/ |
H A D | imageblur2.cpp | 53 SkRandom rand; in DEF_SIMPLE_GM() local 55 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in DEF_SIMPLE_GM()
|
H A D | hittestpath.cpp | 46 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 D | QuickRejectBench.cpp | 21 SkRandom rand; variable 23 fFloats[i] = 300.0f * (rand.nextSScalar1() + 0.5f);
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | espfix_64.c | 97 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 D | appswitch_input.cpp | 133 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 D | touch_input.cpp | 63 int touchX = rand() % screenWidth; in RandomInput() 64 int touchY = rand() % screenHeight; in RandomInput()
|
H A D | rotate_input.cpp | 46 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 D | SkDiscretePathEffect.cpp | 21 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 D | ngtcp2_bbr.c | 102 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 D | ngtcp2_bbr2.h | 65 ngtcp2_rand rand; member 143 ngtcp2_tstamp initial_ts, ngtcp2_rand rand,
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
H A D | ns-icmpv4_sender.c | 442 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 D | sync_stress_merge.c | 64 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 D | ptrace-vsx.c | 69 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 D | ptrace-vsx.c | 69 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 D | sync_stress_merge.c | 64 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 D | dwvw_test.c | 82 write_buf [k] = bit_mask & (arith_shift_left (rand (), 11) ^ (rand () >> 11)) ; in dwvw_test()
|
/third_party/mbedtls/programs/fuzz/ |
H A D | common.c | 79 output[i] = (unsigned char) rand(); in dummy_random() 94 output[i] = (unsigned char) rand(); in dummy_entropy()
|
/third_party/ltp/testcases/cve/ |
H A D | cve-2017-17052.c | 56 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 D | 1-1.c | 49 output_string[i] = rand() % 254 + 1; in random_string() 70 char_pos = rand() % i; in main()
|
/third_party/skia/samplecode/ |
H A D | SampleMegaStroke.cpp | 19 SkRandom rand; in MegaStrokeView() local 23 fMegaPath.lineTo(SkIntToScalar(index), SkIntToScalar(rand.nextRangeU(500, 600))); in MegaStrokeView()
|