/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/ |
H A D | vivid-touch-cap.c | 213 unsigned int rand = get_random_u32(); in vivid_fill_buff_noise() local 215 if (rand % 10) in vivid_fill_buff_noise() 218 tch_buf[i] = (rand / 10) % 7 - 3; in vivid_fill_buff_noise() 261 unsigned int test_pattern, test_pat_idx, rand; in vivid_fillbuff_tch() local 276 rand = dev->tch_pat_random; in vivid_fillbuff_tch() 281 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch() 285 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch() 289 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch() 293 (rand % f->height) * f->width + in vivid_fillbuff_tch()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | ip_defrag.c | 245 if (!cfg_overlap && (rand() % 100 < 15)) { in send_udp_frags() 255 if (!cfg_overlap && (rand() % 100 < 20) && in send_udp_frags() 280 if (rand() % 100 == 1) in send_udp_frags() 299 offset = rand() % (payload_len / 2); in send_udp_frags() 300 frag_len = 2 * max_frag_len + 1 + rand() % 256; in send_udp_frags() 328 if (rand() % 100 == 1) in send_udp_frags() 364 payload_len += (rand() % 4096)) { in run_test() 375 rand() % (1500 - FRAG_HLEN - min_frag_len); in run_test() 389 max_frag_len += 8 * (rand() % 8); in run_test()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | tcp_hdr_options.c | 63 fprintf(stderr, "%s{flags:0x%x, max_delack_ms:%u, rand:0x%x}\n", in print_option() 64 prefix ? : "", opt->flags, opt->max_delack_ms, opt->rand); in print_option() 304 exp_passive_estab_in.rand = 0xfa; in fastopen_estab() 308 exp_active_estab_in.rand = 0xce; in fastopen_estab() 341 exp_passive_estab_in.rand = 0xfa; in syncookie_estab() 346 exp_active_estab_in.rand = 0xce; in syncookie_estab() 385 exp_passive_fin_in.rand = 0xfa; in fin() 388 exp_active_fin_in.rand = 0xce; in fin() 417 exp_passive_estab_in.rand = 0xfa; in __simple_estab() 421 exp_active_estab_in.rand in __simple_estab() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | torture.c | 344 DEFINE_TORTURE_RANDOM(rand); in torture_onoff() 358 torture_hrtimeout_jiffies(onoff_holdoff, &rand); in torture_onoff() 363 torture_hrtimeout_jiffies(HZ / 10, &rand); in torture_onoff() 366 cpu = torture_random(&rand) % (maxcpu + 1); in torture_onoff() 373 torture_hrtimeout_jiffies(onoff_interval, &rand); in torture_onoff() 526 DEFINE_TORTURE_RANDOM(rand); in torture_shuffle_tasks() 547 if (!random_shuffle || torture_random(&rand) & 0x1) in torture_shuffle_tasks() 561 DEFINE_TORTURE_RANDOM(rand); in torture_shuffle() 565 torture_hrtimeout_jiffies(shuffle_interval, &rand); in torture_shuffle()
|
/third_party/skia/gm/ |
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);
|
H A D | discard.cpp | 63 SkRandom rand; variable 68 SkColor color = ToolUtils::color_to_565(rand.nextU() | 0xFF404040); 69 switch (rand.nextULessThan(3)) {
|
/kernel/linux/linux-5.10/net/rds/ |
H A D | threads.c | 126 unsigned long rand; in rds_queue_reconnect() local 148 get_random_bytes(&rand, sizeof(rand)); in rds_queue_reconnect() 150 rand % cp->cp_reconnect_jiffies, cp->cp_reconnect_jiffies, in rds_queue_reconnect() 155 rand % cp->cp_reconnect_jiffies); in rds_queue_reconnect()
|
/kernel/linux/linux-6.6/net/rds/ |
H A D | threads.c | 126 unsigned long rand; in rds_queue_reconnect() local 148 get_random_bytes(&rand, sizeof(rand)); in rds_queue_reconnect() 150 rand % cp->cp_reconnect_jiffies, cp->cp_reconnect_jiffies, in rds_queue_reconnect() 155 rand % cp->cp_reconnect_jiffies); in rds_queue_reconnect()
|
/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | bpf_rand.h | 11 return (((uint64_t)(uint32_t)rand()) | in bpf_rand_mask() 12 ((uint64_t)(uint32_t)rand() << 32)) & mask; in bpf_rand_mask() 37 switch (rand() % 39) { in bpf_semi_rand_get()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | bpf_rand.h | 11 return (((uint64_t)(uint32_t)rand()) | in bpf_rand_mask() 12 ((uint64_t)(uint32_t)rand() << 32)) & mask; in bpf_rand_mask() 37 switch (rand() % 39) { in bpf_semi_rand_get()
|
/test/ostest/wukong/input_factory/src/ |
H A D | mouse_input.cpp | 50 int xClickPosition = rand() % screenWidth; in RandomInput() 51 int yClickPosition = rand() % screenHeight; in RandomInput() 53 int randomInt = rand() % ONEHUNDRED; in RandomInput()
|
/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/skia/tests/ |
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()
|
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()
|
/third_party/skia/bench/ |
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 },
|
/kernel/linux/linux-6.6/kernel/rcu/ |
H A D | rcutorture.c | 1369 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...] |
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | wp.c | 68 unsigned long tmp, tmp1 = rand(); in wp_ro_test() 87 unsigned long tmp, tmp1 = rand(); in wp_wo_test() 106 unsigned long tmp, tmp1 = rand(); in wp_rw_test() 126 unsigned long tmp = rand(); in wp_modify_test()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | wp.c | 78 unsigned long tmp, tmp1 = rand(); in test__wp_ro() 102 unsigned long tmp, tmp1 = rand(); in test__wp_wo() 126 unsigned long tmp, tmp1 = rand(); in test__wp_rw() 150 unsigned long tmp = rand(); in test__wp_modify()
|
/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()
|