| /xnu-11215/bsd/net/pktsched/ |
| H A D | pktsched_netem.c | 669 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 D | memcmp_zero.c | 42 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 D | manual_wq_cooperative.c | 151 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 D | xnu_quick_test_helpers.c | 26 my_rand = rand(); in create_target_directory() 74 my_rand = rand(); in create_random_name()
|
| H A D | IP6_EXTHDR_CHECK_61873584.c | 39 id = rand();
|
| H A D | file_leases.c | 547 snprintf(destfile, sizeof(destfile), "%s.%d", testfile, rand()); 627 snprintf(destfile, sizeof(destfile), "%s.%d", testfile, rand());
|
| H A D | lockf_basic.c | 196 const useconds_t usec = rand() & (16384 - 1); in random_pause()
|
| /xnu-11215/osfmk/tests/ |
| H A D | pmap_tests.c | 337 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 D | kernel_tests.c | 1668 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 D | ccrng.h | 73 int ccrng_uniform(struct ccrng_state *rng, uint64_t bound, uint64_t *rand);
|
| H A D | ccrng_crypto.h | 65 void *rand);
|
| /xnu-11215/libkern/libkern/crypto/ |
| H A D | Makefile | 9 DATAFILES = crypto.h md5.h rand.h sha1.h
|
| /xnu-11215/osfmk/corecrypto/ |
| H A D | cc_internal.h | 62 extern bool cc_rdrand(uint64_t *rand); 65 extern bool (*cc_rdrand_mock)(uint64_t *rand);
|
| /xnu-11215/pexpert/arm/hwtrace/ |
| H A D | hwtrace.c | 396 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 D | cuckoo_hashtable_test.c | 528 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 D | skt_copy_cksum.c | 376 *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 D | skywalk_test_common.c | 1537 tx_headroom = (rand() % FETH_HEADROOM_MUL_8_MAX) * 8; in sktc_feth_set_flags()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | hibernate_restore.c | 337 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 D | sched_runqueue_harness.c | 170 int rand_ind = (rand() % (num_threads - i)) + i; in enqueue_threads_arr_rand_order()
|
| /xnu-11215/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 1357 g_one_long_spin_id = (uint32_t)rand() % g_numthreads; in main()
|