Home
last modified time | relevance | path

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

12345678

/freebsd-12.1/sys/netinet6/
H A Dip6_id.c188 p->ru_x = arc4random() % p->ru_m; in initid()
191 p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
192 p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
195 p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1; in initid()
197 (arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m); in initid()
201 j = arc4random() % p->ru_n; in initid()
235 n = arc4random() & 0x3; in randomid()
H A Dmld6_var.h142 #define MLD_RANDOM_DELAY(X) (arc4random() % (X) + 1)
/freebsd-12.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-12.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-12.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-12.1/crypto/openssh/openbsd-compat/
H A Darc4random.c236 arc4random(void) in arc4random() function
272 r = arc4random(); in arc4random_buf()
309 r = arc4random(); in arc4random_uniform()
331 arc4random();
/freebsd-12.1/
H A DLOCKS12 head/sys/libkern/arc4random.c Requires Security Officer approval.
14 stable/*/sys/libkern/arc4random.c Requires Security Officer approval.
/freebsd-12.1/sys/geom/raid/
H A Dmd_sii.c397 meta->timestamp[0] = arc4random(); in sii_meta_write_spare()
398 meta->timestamp[1] = arc4random(); in sii_meta_write_spare()
399 meta->timestamp[2] = arc4random(); in sii_meta_write_spare()
400 meta->timestamp[3] = arc4random(); in sii_meta_write_spare()
401 meta->timestamp[4] = arc4random(); in sii_meta_write_spare()
402 meta->timestamp[5] = arc4random(); in sii_meta_write_spare()
406 meta->raid_location = arc4random(); in sii_meta_write_spare()
886 mdi->mdio_timestamp[5] = arc4random(); in g_raid_md_create_sii()
887 mdi->mdio_timestamp[4] = arc4random(); in g_raid_md_create_sii()
888 mdi->mdio_timestamp[3] = arc4random(); in g_raid_md_create_sii()
[all …]
/freebsd-12.1/lib/libc/gen/
H A DMakefile.inc18 arc4random.c \
19 arc4random-compat.c \
170 CFLAGS.arc4random.c= -I${SRCTOP}/sys -I${SRCTOP}/sys/crypto/chacha20
195 arc4random.3 \
323 MLINKS+=arc4random.3 arc4random_buf.3 \
324 arc4random.3 arc4random_uniform.3
H A Darc4random_uniform.c52 r = arc4random(); in arc4random_uniform()
/freebsd-12.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-12.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-12.1/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fuzz.c76 ret = ((arc4random() & 1) ? in sshbuf_fuzz_tests()
115 r |= arc4random() & 1; in sshbuf_fuzz_tests()
/freebsd-12.1/sys/netpfil/pf/
H A Dpf_lb.c272 cut = arc4random() % (1 + high - low) + low; in pf_get_sport()
391 rpool->counter.addr32[0] = htonl(arc4random()); in pf_map_addr()
398 htonl(arc4random()); in pf_map_addr()
403 htonl(arc4random()); in pf_map_addr()
408 htonl(arc4random()); in pf_map_addr()
413 htonl(arc4random()); in pf_map_addr()
/freebsd-12.1/contrib/unbound/compat/
H A Darc4random_uniform.c51 r = arc4random(); in arc4random_uniform()
/freebsd-12.1/sys/net/
H A Dradix_mpath.c302 hashjitter = arc4random(); in rn4_mpath_inithead()
318 hashjitter = arc4random(); in rn6_mpath_inithead()
/freebsd-12.1/sys/mips/atheros/
H A Dar71xx_macaddr.c100 rnd = arc4random(); in ar71xx_mac_addr_random_init()
/freebsd-12.1/tools/tools/qrndtest/
H A Dr.c48 { "arc4random", arc4random },
/freebsd-12.1/contrib/ntp/lib/isc/
H A Drandom.c96 *val = arc4random(); in isc_random_get()
/freebsd-12.1/usr.sbin/ppp/
H A Ddefs.h127 #define random arc4random
/freebsd-12.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()
/freebsd-12.1/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c70 if (arc4random() & 1) { in vhba_init()
76 if ((arc4random() % i) == 0) { in vhba_init()
/freebsd-12.1/usr.bin/newkey/
H A Dgeneric.c67 seed[i] = (arc4random() & 0xff) ^ pass[i % 8]; in getseed()

12345678