HomeSort by: relevance | last modified time | path
    Searched refs:arc4random (Results 1 - 25 of 46) sorted by relevancy

1 2

  /src/lib/libcrypt/
pw_gensalt.c 95 __crypt_to64(&salt[0], arc4random(), 2);
121 __crypt_to64(&salt[5], arc4random(), 4);
137 __crypt_to64(&salt[3], arc4random(), 4);
138 __crypt_to64(&salt[7], arc4random(), 4);
160 __crypt_to64(&salt[n], arc4random(), 4);
161 __crypt_to64(&salt[n + 4], arc4random(), 4);
259 __crypt_tobase64(&salt[n], arc4random(), 4);
260 __crypt_tobase64(&salt[n + 4], arc4random(), 4);
261 __crypt_tobase64(&salt[n + 8], arc4random(), 4);
262 __crypt_tobase64(&salt[n + 12], arc4random(), 4)
    [all...]
bcrypt.c 184 seed = arc4random();
  /src/lib/libc/gen/
randomid.c 217 p->ru_x = arc4random() % p->ru_m;
220 p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1));
221 p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1));
224 p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1;
226 (arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m);
230 j = arc4random() % p->ru_n;
309 n = arc4random() & p->ru_skip;
Makefile.inc 11 SRCS+= alarm.c alphasort.c arc4random.c assert.c asysctl.c \
43 LINTFLAGS.arc4random.c+=-Ac11 # stdatomic.h
44 LINTFLAGS.arc4random.c+=-X 129 # expression has null effect (in atomic macros)
60 MAN+= alarm.3 arc4random.3 basename.3 bsd_signal.3 bswap.3 \
94 MLINKS+=arc4random.3 arc4random_addrandom.3 arc4random.3 arc4random_buf.3 \
95 arc4random.3 arc4random_stir.3 arc4random.3 arc4random_uniform.3
222 LINTFLAGS.arc4random.c += ${${ACTIVE_CC} == "clang":? -X 215 :}
arc4random.c 1 /* $NetBSD: arc4random.c,v 1.50 2025/03/11 14:30:27 riastradh Exp $ */
33 * Legacy arc4random(3) API from OpenBSD reimplemented using the
43 * The arc4random(3) API may abort the process if:
49 * the arc4random(3) API. KERN_ARND is unlikely to fail later unless
54 __RCSID("$NetBSD: arc4random.c,v 1.50 2025/03/11 14:30:27 riastradh Exp $");
73 #include "arc4random.h"
77 __weak_alias(arc4random,_arc4random)
525 /* arc4random state: per-thread, per-process (zeroed in child on fork) */
664 * state to avoid contention due to arc4random.
673 * Note that the arc4random library state has been initialize
745 arc4random(void) function in typeref:typename:uint32_t
    [all...]
  /src/tests/lib/libc/
t_cdb.c 77 sorted_keys[i] = keys[i] = arc4random();
103 ATF_REQUIRE(cdbw_output(db, fd, "test database", arc4random) == 0);
  /src/sys/external/isc/libsodium/dist/test/default/
cmptest.h 32 # define rand(X) arc4random(X)
  /src/sbin/fsirand/
fsirand.c 172 ufs_rw32((arc4random() & INT32_MAX)^ xorval,
181 ufs_rw32((arc4random() & INT32_MAX) ^ xorval,
  /src/usr.bin/nbperf/
nbperf.c 66 #define arc4random() rand() macro
76 nbperf->seed[0] = arc4random();
  /src/bin/rm/
rm.c 433 *(int *)(buf + i) = arc4random(); \
467 randint = arc4random();
  /src/dist/pf/sbin/pflogd/
privsep.c 216 name, arc4random());
  /src/lib/libtelnet/
pk.c 167 seed[i] = arc4random() & 0xff;
  /src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/sysrandom/
randombytes_sysrandom.c 71 return arc4random();
  /src/usr.bin/rump_dhcpclient/
main.c 254 ifp->state->xid = arc4random();
net.c 437 ip->ip_id = arc4random() & UINT16_MAX;
  /src/include/
stdlib.h 275 uint32_t arc4random(void);
  /src/sbin/newfs/
mkfs.c 519 sblock.fs_id[1] = arc4random() & INT32_MAX;
965 dp1->di_gen = arc4random() & INT32_MAX;
968 dp2->di_gen = arc4random() & INT32_MAX;
987 dp1->di_gen = arc4random() & INT32_MAX;
1402 dp1->di_gen = arc4random() & INT32_MAX;
1414 dp2->di_gen = arc4random() & INT32_MAX;
  /src/sbin/routed/
main.c 828 : (lo + arc4random() % ((hi - lo))));
829 tp->tv_usec = arc4random() % 1000000;
  /src/dist/pf/libexec/tftp-proxy/
tftp-proxy.c 411 return (IPPORT_HIFIRSTAUTO + (arc4random() %
  /src/games/worms/
worms.c 433 srandom(seed ? seed : arc4random());
  /src/libexec/identd/
identd.c 505 (unsigned int)(arc4random() % 65535));
934 *p++ = chars[arc4random() % (sizeof(chars) - 1)];
  /src/lib/libc/cdb/
cdbw.c 623 seedgen = arc4random;
  /src/sbin/newfs_ext2fs/
mke2fs.c 769 dp->e2di_gen = h2fs32(arc4random());
1381 dp->e2di_gen = h2fs32(arc4random());
  /src/usr.sbin/rtadvd/
rtadvd.c 1005 delay = arc4random() % MAX_RA_DELAY_TIME;
1777 interval += arc4random() % (rai->maxinterval-rai->mininterval);
  /src/dist/pf/sbin/pfctl/
pfctl_optimize.c 1294 table_identifier = arc4random();
1310 table_identifier = arc4random();

Completed in 26 milliseconds

1 2