Home
last modified time | relevance | path

Searched refs:arc4random (Results 1 – 25 of 190) sorted by relevance

12345678

/freebsd-13.1/sys/netinet6/
H A Dip6_id.c189 p->ru_x = arc4random() % p->ru_m; in initid()
192 p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
193 p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
196 p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1; in initid()
198 (arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m); in initid()
202 j = arc4random() % p->ru_n; in initid()
236 n = arc4random() & 0x3; in randomid()
/freebsd-13.1/contrib/ntp/sntp/libevent/
H A Devutil_rand.c56 (void) arc4random(); in evutil_secure_rng_init()
99 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
106 *(ev_uint32_t*)b = arc4random(); in ev_arc4random_buf()
111 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
H A Darc4random.c485 arc4random(void) in arc4random() function
549 r = arc4random(); in arc4random_uniform()
/freebsd-13.1/contrib/libevent/
H A Devutil_rand.c56 (void) arc4random(); in evutil_secure_rng_init()
99 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
106 *(ev_uint32_t*)b = arc4random(); in ev_arc4random_buf()
111 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
H A Darc4random.c485 arc4random(void) in arc4random() function
549 r = arc4random(); in arc4random_uniform()
/freebsd-13.1/contrib/apr/file_io/unix/
H A Dmktemp.c64 #define arc4random() rand() macro
70 #define arc4random() random() macro
118 randnum = arc4random() % (sizeof(padchar) - 1); in gettemp()
/freebsd-13.1/crypto/openssh/openbsd-compat/
H A Darc4random.c242 arc4random(void) in arc4random() function
278 r = arc4random(); in arc4random_buf()
315 r = arc4random(); in arc4random_uniform()
337 arc4random();
/freebsd-13.1/
H A DLOCKS12 head/sys/libkern/arc4random.c Requires Security Officer approval.
14 stable/*/sys/libkern/arc4random.c Requires Security Officer approval.
/freebsd-13.1/sbin/fsirand/
H A Dfsirand.c174 sblock->fs_id[1] = arc4random(); in fsirand()
205 dp1->di_gen = arc4random(); in fsirand()
208 dp2->di_gen = arc4random(); in fsirand()
/freebsd-13.1/sys/dev/cxgbe/iw_cxgbe/
H A Did_table.c64 alloc->last += arc4random() % RANDOM_SKIP; in c4iw_id_alloc()
98 alloc->last = arc4random() % RANDOM_SKIP; in c4iw_id_table_alloc()
/freebsd-13.1/sys/geom/raid/
H A Dmd_sii.c399 meta->timestamp[0] = arc4random(); in sii_meta_write_spare()
400 meta->timestamp[1] = arc4random(); in sii_meta_write_spare()
401 meta->timestamp[2] = arc4random(); in sii_meta_write_spare()
402 meta->timestamp[3] = arc4random(); in sii_meta_write_spare()
403 meta->timestamp[4] = arc4random(); in sii_meta_write_spare()
404 meta->timestamp[5] = arc4random(); in sii_meta_write_spare()
408 meta->raid_location = arc4random(); in sii_meta_write_spare()
887 mdi->mdio_timestamp[5] = arc4random(); in g_raid_md_create_sii()
888 mdi->mdio_timestamp[4] = arc4random(); in g_raid_md_create_sii()
889 mdi->mdio_timestamp[3] = arc4random(); in g_raid_md_create_sii()
[all …]
/freebsd-13.1/contrib/netbsd-tests/lib/libc/
H A Dt_cdb.c77 sorted_keys[i] = keys[i] = arc4random(); in init_keys()
103 ATF_REQUIRE(cdbw_output(db, fd, "test database", arc4random) == 0); in write_database()
/freebsd-13.1/lib/libc/gen/
H A DMakefile.inc20 arc4random.c \
21 arc4random-compat.c \
177 CFLAGS.arc4random.c= -I${SRCTOP}/sys -I${SRCTOP}/sys/crypto/chacha20
205 arc4random.3 \
334 MLINKS+=arc4random.3 arc4random_buf.3 \
335 arc4random.3 arc4random_uniform.3
H A Darc4random_uniform.c52 r = arc4random(); in arc4random_uniform()
/freebsd-13.1/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fuzz.c81 ret = ((arc4random() & 1) ? in sshbuf_fuzz_tests()
120 r |= arc4random() & 1; in sshbuf_fuzz_tests()
/freebsd-13.1/contrib/unbound/compat/
H A Darc4random_uniform.c51 r = arc4random(); in arc4random_uniform()
/freebsd-13.1/sys/libkern/
H A Darc4random_uniform.c52 r = arc4random(); in arc4random_uniform()
/freebsd-13.1/sys/netpfil/pf/
H A Dpf_lb.c267 cut = arc4random() % (1 + high - low) + low; in pf_get_sport()
323 cut = arc4random() & ahigh; in pf_get_mape_sport()
433 rpool->counter.addr32[0] = htonl(arc4random()); in pf_map_addr()
440 htonl(arc4random()); in pf_map_addr()
445 htonl(arc4random()); in pf_map_addr()
450 htonl(arc4random()); in pf_map_addr()
455 htonl(arc4random()); in pf_map_addr()
/freebsd-13.1/sys/kern/
H A Duipc_mbufhash.c64 seed = arc4random(); in m_ether_tcpip_hash_init()
73 seed = arc4random(); in m_infiniband_tcpip_hash_init()
/freebsd-13.1/tools/build/cross-build/include/linux/
H A Dstdlib.h67 unsigned arc4random(void);
/freebsd-13.1/crypto/openssh/
H A Dcrypto_api.h28 #define small_random32() arc4random()
/freebsd-13.1/tools/tools/qrndtest/
H A Dr.c48 { "arc4random", arc4random },
/freebsd-13.1/contrib/ntp/lib/isc/
H A Drandom.c96 *val = arc4random(); in isc_random_get()
/freebsd-13.1/usr.sbin/ppp/
H A Ddefs.h127 #define random arc4random
/freebsd-13.1/tools/tools/vhba/faulty/
H A Dvhba_faulty.c62 vhbastatic.ctr = (arc4random() & 0xffff) + 1; in vhba_init()
94 vhbas->ctr = (arc4random() & 0xff) + 1; in vhba_task()

12345678