| /xnu-11215/libkern/libkern/crypto/ |
| H A D | rand.h | 45 void *random, 51 uint64_t *random); 68 void *random, 79 uint64_t *random);
|
| /xnu-11215/libkern/crypto/ |
| H A D | corecrypto_rand.c | 58 void *random, in crypto_random_generate() argument 61 g_crypto_funcs->random_generate_fn(ctx, random, random_size); in crypto_random_generate() 68 uint64_t *random) in crypto_random_uniform() argument 70 g_crypto_funcs->random_uniform_fn(ctx, bound, random); in crypto_random_uniform()
|
| /xnu-11215/tests/ |
| H A D | select_stress.c | 104 if (random() % 1) { in recycle_fds() 113 if ((random() % ep->fd[0]) == 0) { in recycle_fds() 114 usleep(((random() % ep->fd[1]) + 1) * ep->fd[1]); in recycle_fds() 152 usleep(((random() % ep->fd[1]) + 1) * ep->fd[1]); in do_stress_events() 154 if ((random() % write_freq) == 0) { in do_stress_events() 190 if ((random() % TIMEOUT_CHANCE) == 0) { in do_select() 191 timeout.tv_sec = random() % 1; in do_select() 192 timeout.tv_usec = ((random() % TIMEOUT_POLLCHANCE) * TIMEOUT_SCALE); in do_select()
|
| H A D | inet_transfer.c | 413 uint32_t random; in fill_with_random() local 415 n = len / sizeof(random); in fill_with_random() 416 for (i = 0, p = buf; i < n; i++, p += sizeof(random)) { in fill_with_random() 417 random = arc4random(); in fill_with_random() 418 bcopy(&random, p, sizeof(random)); in fill_with_random()
|
| H A D | ecc_test_helper.c | 250 x.big_data[36] = (int)random(); in main() 284 x.big_data[37] = (int)random(); in main()
|
| H A D | vsock.c | 748 void *random = malloc(size); variable 752 ssize_t sent = write(socketA, random, size); 760 T_ASSERT_EQ_INT(0, memcmp(random, buffer, size), "sent and received same data"); 763 free(random);
|
| H A D | spawn_exec_failure.c | 50 sprintf(filename, "/tmp/echo-test-%ld", random()); in invalid_code_signature_helper()
|
| /xnu-11215/bsd/libkern/ |
| H A D | random.c | 74 random(void) in random() function
|
| H A D | libkern.h | 151 extern u_int32_t random(void);
|
| /xnu-11215/bsd/dev/random/ |
| H A D | Makefile | 16 EXPORT_MI_DIR = dev/random
|
| /xnu-11215/bsd/dev/ |
| H A D | Makefile | 9 EXPINC_SUBDIRS = random
|
| /xnu-11215/osfmk/prng/ |
| H A D | Makefile | 11 random.h
|
| /xnu-11215/bsd/netinet/ |
| H A D | ip_dummynet.h | 284 int random; /* random value (scaled) */ member 449 int random; /* random value (scaled) */ member 574 int random; /* random value (scaled) */ member
|
| H A D | igmp_var.h | 198 #define IGMP_RANDOM_DELAY(X) (random() % (X) + 1)
|
| H A D | tcp_cache.c | 1555 local_address.sin.sin_port = random() % UINT16_MAX; 1556 local_address.sin.sin_addr.s_addr = random(); 1560 remote_address.sin.sin_port = random() % UINT16_MAX; 1561 remote_address.sin.sin_addr.s_addr = random();
|
| /xnu-11215/bsd/man/man4/ |
| H A D | Makefile | 32 random.4 \
|
| /xnu-11215/tools/lldbmacros/usertaskdebugging/ |
| H A D | gdbserver.py | 4 import random 12 self.portnum = random.randint(2000, 8000)
|
| /xnu-11215/tests/iokit/ |
| H A D | ioserviceusernotification_race.c | 238 if ((random() % 1000) == 0) { 246 if ((random() % 3) == 0) {
|
| /xnu-11215/osfmk/kern/ |
| H A D | epoch_sync.c | 604 uint64_t random = 0; in random_delay() local 605 read_random(&random, sizeof(random)); in random_delay() 606 delay(random % 512); in random_delay()
|
| /xnu-11215/tools/tests/jitter/ |
| H A D | timer_jitter.c | 150 tmp = (uint32_t)random(); in get_random_sleep_length_abs_ns() 152 tmp |= (uint32_t)random(); in get_random_sleep_length_abs_ns()
|
| /xnu-11215/libkern/kxld/tests/ |
| H A D | kxld_array_test.c | 142 *item = (u_int) (random() % UINT_MAX); in main()
|
| H A D | kxld_dict_test.c | 128 tmp_key[j] = (random() % 26) + 'a'; in main()
|
| /xnu-11215/bsd/sys/ |
| H A D | Makefile | 42 sbuf.h posix_sem.h posix_shm.h random.h sdt.h\ 159 proc.h queue.h random.h resource.h \
|
| /xnu-11215/bsd/kern/ |
| H A D | vsock_domain.c | 188 uint32_t random = 0; in vsock_bind_address() local 189 read_frandom(&random, sizeof(random)); in vsock_bind_address() 190 *last_port = first + (random % count); in vsock_bind_address()
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_llink.c | 310 id = (uint16_t)(random() % 65536); in nx_netif_generate_internal_llink_id() 729 random_id = random(); in nx_netif_find_qset() 745 random_id = random(); in nx_netif_find_qset()
|