Searched refs:arc4random (Results 1 - 25 of 153) sorted by relevance

1234567

/freebsd-12-stable/contrib/unbound/compat/
H A Darc4random_uniform.c51 r = arc4random();
/freebsd-12-stable/lib/libc/gen/
H A Darc4random_uniform.c52 r = arc4random();
H A DMakefile.inc18 arc4random.c \
19 arc4random-compat.c \
172 CFLAGS.arc4random.c= -I${SRCTOP}/sys -I${SRCTOP}/sys/crypto/chacha20
197 arc4random.3 \
326 MLINKS+=arc4random.3 arc4random_buf.3 \
327 arc4random.3 arc4random_uniform.3
/freebsd-12-stable/sys/libkern/
H A Darc4random_uniform.c52 r = arc4random();
/freebsd-12-stable/contrib/ntp/sntp/libevent/
H A Devutil_rand.c27 /* This file has our secure PRNG code. On platforms that have arc4random(),
28 * we just use that. Otherwise, we include arc4random.c as a bunch of static
29 * functions, and wrap it lightly. We don't expose the arc4random*() APIs
55 /* call arc4random() now to force it to self-initialize */
56 (void) arc4random();
99 ev_uint32_t u = arc4random();
106 *(ev_uint32_t*)b = arc4random();
111 ev_uint32_t u = arc4random();
134 #include "./arc4random.c"
/freebsd-12-stable/contrib/libevent/
H A Devutil_rand.c27 /* This file has our secure PRNG code. On platforms that have arc4random(),
28 * we just use that. Otherwise, we include arc4random.c as a bunch of static
29 * functions, and wrap it lightly. We don't expose the arc4random*() APIs
55 /* call arc4random() now to force it to self-initialize */
56 (void) arc4random();
99 ev_uint32_t u = arc4random();
106 *(ev_uint32_t*)b = arc4random();
111 ev_uint32_t u = arc4random();
134 #include "./arc4random.c"
/freebsd-12-stable/sys/netinet6/
H A Dip6_id.c188 p->ru_x = arc4random() % p->ru_m;
191 p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1));
192 p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1));
195 p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1;
197 (arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m);
201 j = arc4random() % p->ru_n;
235 n = arc4random() & 0x3;
H A Dmld6_var.h142 #define MLD_RANDOM_DELAY(X) (arc4random() % (X) + 1)
/freebsd-12-stable/contrib/apr/file_io/unix/
H A Dmktemp.c64 #define arc4random() rand() macro
70 #define arc4random() random() macro
118 randnum = arc4random() % (sizeof(padchar) - 1);
/freebsd-12-stable/sys/mips/atheros/
H A Dar71xx_macaddr.c100 rnd = arc4random();
/freebsd-12-stable/tools/tools/qrndtest/
H A Dr.c48 { "arc4random", arc4random },
/freebsd-12-stable/sys/dev/cxgbe/iw_cxgbe/
H A Did_table.c64 alloc->last += arc4random() % RANDOM_SKIP;
98 alloc->last = arc4random() % RANDOM_SKIP;
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/
H A Dt_cdb.c77 sorted_keys[i] = keys[i] = arc4random();
103 ATF_REQUIRE(cdbw_output(db, fd, "test database", arc4random) == 0);
/freebsd-12-stable/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fuzz.c76 ret = ((arc4random() & 1) ?
115 r |= arc4random() & 1;
/freebsd-12-stable/contrib/ntp/lib/isc/
H A Drandom.c96 *val = arc4random();
/freebsd-12-stable/crypto/openssh/openbsd-compat/
H A Darc4random.c1 /* OPENBSD ORIGINAL: lib/libc/crypto/arc4random.c */
3 /* $OpenBSD: arc4random.c,v 1.25 2013/10/01 18:34:57 markus Exp $ */
236 arc4random(void) function
247 * If we are providing arc4random, then we can provide a more efficient
261 /* arc4random_buf() that uses platform arc4random() */
272 r = arc4random();
309 r = arc4random();
331 arc4random();
/freebsd-12-stable/usr.sbin/ppp/
H A Ddefs.h127 #define random arc4random
/freebsd-12-stable/contrib/unbound/util/
H A Drandom.c38 * Thread safe random functions. Similar to arc4random() with an explicit
41 * The code in this file is based on arc4random from
42 * openssh-4.0p1/openbsd-compat/bsd-arc4random.c
97 return (long)arc4random() & MAX_VALUE;
/freebsd-12-stable/usr.bin/newkey/
H A Dgeneric.c67 seed[i] = (arc4random() & 0xff) ^ pass[i % 8];
/freebsd-12-stable/contrib/llvm-project/libcxx/src/
H A Drandom.cpp77 return arc4random();
/freebsd-12-stable/sys/net/
H A Dradix_mpath.c302 hashjitter = arc4random();
318 hashjitter = arc4random();
/freebsd-12-stable/sys/kern/
H A Duipc_mbufhash.c64 seed = arc4random();
73 seed = arc4random();
/freebsd-12-stable/sys/geom/raid/
H A Dmd_sii.c397 meta->timestamp[0] = arc4random();
398 meta->timestamp[1] = arc4random();
399 meta->timestamp[2] = arc4random();
400 meta->timestamp[3] = arc4random();
401 meta->timestamp[4] = arc4random();
402 meta->timestamp[5] = arc4random();
406 meta->raid_location = arc4random();
886 mdi->mdio_timestamp[5] = arc4random();
887 mdi->mdio_timestamp[4] = arc4random();
888 mdi->mdio_timestamp[3] = arc4random();
[all...]
/freebsd-12-stable/sys/netpfil/pf/
H A Dpf_lb.c267 cut = arc4random() % (1 + high - low) + low;
321 cut = arc4random() & ahigh;
422 rpool->counter.addr32[0] = htonl(arc4random());
429 htonl(arc4random());
434 htonl(arc4random());
439 htonl(arc4random());
444 htonl(arc4random());
/freebsd-12-stable/contrib/openbsm/bin/auditdistd/
H A Dsubr.c168 val = arc4random();

Completed in 371 milliseconds

1234567