Home
last modified time | relevance | path

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

12345

/netbsd/src/lib/libcrypt/
Dpw_gensalt.c95 __crypt_to64(&salt[0], arc4random(), 2); in __gensalt_old()
121 __crypt_to64(&salt[5], arc4random(), 4); in __gensalt_new()
137 __crypt_to64(&salt[3], arc4random(), 4); in __gensalt_md5()
138 __crypt_to64(&salt[7], arc4random(), 4); in __gensalt_md5()
160 __crypt_to64(&salt[n], arc4random(), 4); in __gensalt_sha1()
161 __crypt_to64(&salt[n + 4], arc4random(), 4); in __gensalt_sha1()
259 __crypt_tobase64(&salt[n], arc4random(), 4); in __gensalt_argon2()
260 __crypt_tobase64(&salt[n + 4], arc4random(), 4); in __gensalt_argon2()
261 __crypt_tobase64(&salt[n + 8], arc4random(), 4); in __gensalt_argon2()
262 __crypt_tobase64(&salt[n + 12], arc4random(), 4); in __gensalt_argon2()
/netbsd/src/lib/libc/gen/
Drandomid.c217 p->ru_x = arc4random() % p->ru_m; in initid()
220 p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
221 p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
224 p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1; in initid()
226 (arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m); in initid()
230 j = arc4random() % p->ru_n; in initid()
309 n = arc4random() & p->ru_skip; in randomid()
DMakefile.inc11 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 :}
Darc4random.c77 __weak_alias(arc4random,_arc4random) in __weak_alias() argument
745 arc4random(void) in arc4random() function
851 if (printf("arc4random: %08"PRIx32"\n", arc4random()) < 0) in main()
/netbsd/src/external/bsd/ntp/dist/sntp/libevent/
Devutil_rand.c58 (void) arc4random(); in evutil_secure_rng_init()
101 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
108 *(ev_uint32_t*)b = arc4random(); in ev_arc4random_buf()
113 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
Darc4random.c477 arc4random(void) in arc4random() function
541 r = arc4random(); in arc4random_uniform()
/netbsd/src/external/bsd/libevent/dist/
Devutil_rand.c60 (void) arc4random(); in evutil_secure_rng_init()
105 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
112 *(ev_uint32_t*)b = arc4random(); in ev_arc4random_buf()
117 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
Darc4random.c476 arc4random(void) in arc4random() function
540 r = arc4random(); in arc4random_uniform()
/netbsd/src/crypto/external/bsd/openssl/lib/libdes/
Dorand_key.c47 v = arc4random(); in des_random_key()
52 v = arc4random(); in des_random_key()
Doenc_writ.c131 *(u_int32_t *)&shortbuf[0] = arc4random(); in des_enc_write()
132 *(u_int32_t *)&shortbuf[4] = arc4random(); in des_enc_write()
/netbsd/src/tests/lib/libc/
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()
/netbsd/src/usr.bin/nbperf/
Dnbperf.c66 #define arc4random() rand() macro
76 nbperf->seed[0] = arc4random(); in mi_vector_hash_seed_hash()
/netbsd/src/sbin/fsirand/
Dfsirand.c172 ufs_rw32((arc4random() & INT32_MAX)^ xorval, in fixinodes()
181 ufs_rw32((arc4random() & INT32_MAX) ^ xorval, in fixinodes()
/netbsd/src/crypto/external/bsd/netpgp/dist/src/libbn/
Drand.c55 r = arc4random(); in RAND_bytes()
/netbsd/src/crypto/external/bsd/openssh/dist/
Dcrypto_api.h25 #define small_random32() arc4random()
/netbsd/src/bin/rm/
Drm.c433 *(int *)(buf + i) = arc4random(); \ in rm_overwrite()
467 randint = arc4random(); in rm_overwrite()
/netbsd/src/external/mit/expat/dist/
DConfigureChecks.cmake33 check_symbol_exists("arc4random" "${_bsd}stdlib.h" HAVE_ARC4RANDOM)
Dexpat_config.h.cmake9 /* Define to 1 if you have the `arc4random' function. */
/netbsd/src/sbin/newfs/
Dmkfs.c519 sblock.fs_id[1] = arc4random() & INT32_MAX; in mkfs()
965 dp1->di_gen = arc4random() & INT32_MAX; in initcg()
968 dp2->di_gen = arc4random() & INT32_MAX; in initcg()
987 dp1->di_gen = arc4random() & INT32_MAX; in initcg()
1402 dp1->di_gen = arc4random() & INT32_MAX; in iput()
1414 dp2->di_gen = arc4random() & INT32_MAX; in iput()
/netbsd/src/crypto/external/bsd/heimdal/include/
Droken.h317 # define rk_random() arc4random()
Dconfig.h6 #define arc4random random macro
/netbsd/src/sbin/routed/
Dmain.c828 : (lo + arc4random() % ((hi - lo)))); in intvl_random()
829 tp->tv_usec = arc4random() % 1000000; in intvl_random()
/netbsd/src/dist/pf/sbin/pflogd/
Dprivsep.c216 name, arc4random()); in move_log()
/netbsd/src/usr.bin/rump_dhcpclient/
Dmain.c254 ifp->state->xid = arc4random(); in main()
/netbsd/src/include/
Dstdlib.h275 uint32_t arc4random(void);

12345