Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 55) sorted by relevance

123

/xnu-11215/libkern/libkern/crypto/
H A Drand.h45 void *random,
51 uint64_t *random);
68 void *random,
79 uint64_t *random);
/xnu-11215/libkern/crypto/
H A Dcorecrypto_rand.c58 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 Dselect_stress.c104 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 Dinet_transfer.c413 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 Decc_test_helper.c250 x.big_data[36] = (int)random(); in main()
284 x.big_data[37] = (int)random(); in main()
H A Dvsock.c748 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 Dspawn_exec_failure.c50 sprintf(filename, "/tmp/echo-test-%ld", random()); in invalid_code_signature_helper()
/xnu-11215/bsd/libkern/
H A Drandom.c74 random(void) in random() function
H A Dlibkern.h151 extern u_int32_t random(void);
/xnu-11215/bsd/dev/random/
H A DMakefile16 EXPORT_MI_DIR = dev/random
/xnu-11215/bsd/dev/
H A DMakefile9 EXPINC_SUBDIRS = random
/xnu-11215/osfmk/prng/
H A DMakefile11 random.h
/xnu-11215/bsd/netinet/
H A Dip_dummynet.h284 int random; /* random value (scaled) */ member
449 int random; /* random value (scaled) */ member
574 int random; /* random value (scaled) */ member
H A Digmp_var.h198 #define IGMP_RANDOM_DELAY(X) (random() % (X) + 1)
H A Dtcp_cache.c1555 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 DMakefile32 random.4 \
/xnu-11215/tools/lldbmacros/usertaskdebugging/
H A Dgdbserver.py4 import random
12 self.portnum = random.randint(2000, 8000)
/xnu-11215/tests/iokit/
H A Dioserviceusernotification_race.c238 if ((random() % 1000) == 0) {
246 if ((random() % 3) == 0) {
/xnu-11215/osfmk/kern/
H A Depoch_sync.c604 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 Dtimer_jitter.c150 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 Dkxld_array_test.c142 *item = (u_int) (random() % UINT_MAX); in main()
H A Dkxld_dict_test.c128 tmp_key[j] = (random() % 26) + 'a'; in main()
/xnu-11215/bsd/sys/
H A DMakefile42 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 Dvsock_domain.c188 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 Dnx_netif_llink.c310 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()

123