Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 20 of 20) sorted by relevance

/xnu-11215/bsd/net/pktsched/
H A Dpktsched_netem.c669 read_frandom(&rand, sizeof(rand)); in norm_dist()
916 uint32_t rand; in corruption_event() local
922 read_frandom(&rand, sizeof(rand)); in corruption_event()
923 rand %= NETEM_PSCALE; in corruption_event()
935 uint32_t rand; in duplication_event() local
941 read_frandom(&rand, sizeof(rand)); in duplication_event()
942 rand %= NETEM_PSCALE; in duplication_event()
951 uint32_t rand; in reordering_event() local
954 read_frandom(&rand, sizeof(rand)); in reordering_event()
1005 uint32_t rand; in loss_event() local
[all …]
/xnu-11215/tests/
H A Dmemcmp_zero.c42 buffer[k] = (unsigned char)rand();
47 buffer[k] = (unsigned char)rand();
64 right[k] = (unsigned char)rand();
69 right[k] = (unsigned char)rand();
H A Dmanual_wq_cooperative.c151 switch (rand() % 6) { in get_rand_qos_class()
170 return rand() % (ncpus() * 2); in get_rand_num_thread_requests()
177 return rand() % (NSEC_PER_SEC / 2); in get_rand_spin_duration_nsecs()
H A Dxnu_quick_test_helpers.c26 my_rand = rand(); in create_target_directory()
74 my_rand = rand(); in create_random_name()
H A DIP6_EXTHDR_CHECK_61873584.c39 id = rand();
H A Dfile_leases.c547 snprintf(destfile, sizeof(destfile), "%s.%d", testfile, rand());
627 snprintf(destfile, sizeof(destfile), "%s.%d", testfile, rand());
H A Dlockf_basic.c196 const useconds_t usec = rand() & (16384 - 1); in random_pause()
/xnu-11215/osfmk/tests/
H A Dpmap_tests.c337 uint8_t rand; in test_pmap_nesting() local
338 read_random(&rand, sizeof(rand)); in test_pmap_nesting()
339 uint8_t rand_mod = rand % 3; in test_pmap_nesting()
607 unsigned int rand; in hugepv_fast_fault_thread() local
608 read_random(&rand, sizeof(rand)); in hugepv_fast_fault_thread()
609 unsigned int mapping = rand % args->num_mappings; in hugepv_fast_fault_thread()
H A Dkernel_tests.c1668 u_int8_t rand; in thread_mtx_work() local
1696 read_random(&rand, sizeof(rand)); in thread_mtx_work()
1697 mod_rand = rand % 2; in thread_mtx_work()
1709 panic("rand()mod4 returned %u (random %u)", mod_rand, rand); in thread_mtx_work()
1721 read_random(&rand, sizeof(rand)); in thread_mtx_work()
1740 mod_rand = rand % 2; in thread_mtx_work()
1751 panic("rand()mod4 returned %u (random %u)", mod_rand, rand); in thread_mtx_work()
1769 u_int8_t rand; in thread_rw_work() local
1806 read_random(&rand, sizeof(rand)); in thread_rw_work()
1807 mod_rand = rand % 4; in thread_rw_work()
[all …]
/xnu-11215/EXTERNAL_HEADERS/corecrypto/
H A Dccrng.h73 int ccrng_uniform(struct ccrng_state *rng, uint64_t bound, uint64_t *rand);
H A Dccrng_crypto.h65 void *rand);
/xnu-11215/libkern/libkern/crypto/
H A DMakefile9 DATAFILES = crypto.h md5.h rand.h sha1.h
/xnu-11215/osfmk/corecrypto/
H A Dcc_internal.h62 extern bool cc_rdrand(uint64_t *rand);
65 extern bool (*cc_rdrand_mock)(uint64_t *rand);
/xnu-11215/pexpert/arm/hwtrace/
H A Dhwtrace.c396 const uint32_t rand = os_hash_jenkins(ecid, size); in panic_trace_apply_partial_policy() local
405 if ((rand % 100) >= percent) { in panic_trace_apply_partial_policy()
/xnu-11215/bsd/skywalk/lib/
H A Dcuckoo_hashtable_test.c528 uint32_t rand, ops, idx; in cht_concurrent_duo() local
529 rand = rands[i]; in cht_concurrent_duo()
530 ops = rand & DUO_OPS_MASK; in cht_concurrent_duo()
531 idx = (rand >> DUO_IDX_SHIFT) % CHT_OBJ_MAX; in cht_concurrent_duo()
/xnu-11215/tests/skywalk/
H A Dskt_copy_cksum.c376 *buffer++ = (uint8_t)rand(); in randomise_buffer()
678 init_sum = rand() & 0xffffu; in skt_copy_cksum_common()
725 init_sum = rand() & 0xffffu; in skt_cksum_common()
H A Dskywalk_test_common.c1537 tx_headroom = (rand() % FETH_HEADROOM_MUL_8_MAX) * 8; in sktc_feth_set_flags()
/xnu-11215/osfmk/arm64/
H A Dhibernate_restore.c337 uint16_t rand = (uint16_t)(((header->imageHeaderHMAC[0]) << 8) | header->imageHeaderHMAC[1]); in pal_hib_resume_tramp() local
338 …uint64_t mem_slide = gHibernateGlobals.kernelSlide - (phys_end - phys_start) * 4 - rand * 256 * PA… in pal_hib_resume_tramp()
/xnu-11215/tests/sched/sched_test_harness/
H A Dsched_runqueue_harness.c170 int rand_ind = (rand() % (num_threads - i)) + i; in enqueue_threads_arr_rand_order()
/xnu-11215/tools/tests/zero-to-n/
H A Dzero-to-n.c1357 g_one_long_spin_id = (uint32_t)rand() % g_numthreads; in main()