Home
last modified time | relevance | path

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

12345

/netbsd-src/lib/libcrypt/
H A 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(), in __gensalt_argon2()
[all...]
/netbsd-src/lib/libc/gen/
H A 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()
H A DMakefile.inc11 SRCS+= alarm.c alphasort.c arc4random.c assert.c asysctl.c \
42 LINTFLAGS.arc4random.c+=-Ac11 # stdatomic.h
43 LINTFLAGS.arc4random.c+=-X 129 # expression has null effect (in atomic macros)
59 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 :}
H A Darc4random.c1 /* $NetBSD: arc4random.c,v 1.38 2024/08/29 13:39:42 riastradh Exp $ */
33 * Legacy arc4random(3) API from OpenBSD reimplemented using the
43 * The arc4random(3) API may abort the process if:
50 * once, on the first use of any of the arc4random(3) API. KERN_ARND
55 __RCSID("$NetBSD: arc4random.c,v 1.38 2024/08/29 13:39:42 riastradh Exp $");
75 #include "arc4random.h" in __weak_alias() argument
79 __weak_alias(arc4random,_arc4random) in __weak_alias()
459 /* arc4random state: per-thread, per-process (zeroed in child on fork) */ in arc4random_prng_create()
635 arc4random(void) in arc4random_uniform()
675 * We want a uniform random choice in [0, n), and arc4random() in arc4random_addrandom()
588 arc4random(void) arc4random() function
[all...]
/netbsd-src/external/bsd/libevent/dist/
H A 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()
H A Darc4random.c476 arc4random(void) in arc4random() function
540 r = arc4random(); in arc4random_uniform()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/
H A Drandom.cc195 return ::arc4random(); in __libc_arc4random()
247 device_file = 1, prng = 2, rand_s = 4, getentropy = 8, arc4random = 16, enumerator
291 return arc4random; in which_source()
360 which = arc4random; in _M_init()
447 if (which & arc4random) in _M_init()
621 case arc4random: in _M_getentropy()
/netbsd-src/crypto/external/bsd/openssl.old/lib/libdes/
H A Dorand_key.c47 v = arc4random(); in des_random_key()
52 v = arc4random(); in des_random_key()
H A 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/crypto/external/bsd/openssl/lib/libdes/
H A Dorand_key.c47 v = arc4random(); in des_random_key()
52 v = arc4random(); in des_random_key()
H A 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/
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()
/netbsd-src/usr.bin/nbperf/
H A Dnbperf.c66 #define arc4random() rand() macro
76 nbperf->seed[0] = arc4random(); in mi_vector_hash_seed_hash()
/netbsd-src/sbin/fsirand/
H A Dfsirand.c172 ufs_rw32((arc4random() & INT32_MAX)^ xorval, in fixinodes()
181 ufs_rw32((arc4random() & INT32_MAX) ^ xorval, in fixinodes()
/netbsd-src/external/bsd/unbound/dist/compat/
H A Darc4random_uniform.c51 r = arc4random(); in arc4random_uniform()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/libbn/
H A Drand.c55 r = arc4random(); in RAND_bytes()
/netbsd-src/sys/external/isc/libsodium/dist/test/default/
H A Dcmptest.h32 # define rand(X) arc4random(X)
/netbsd-src/bin/rm/
H A Drm.c433 *(int *)(buf + i) = arc4random(); \ in rm_overwrite()
467 randint = arc4random(); in rm_overwrite()
/netbsd-src/external/bsd/unbound/include/
H A Dconfig.h1386 uint32_t arc4random(void);
1394 uint32_t arc4random(void);
/netbsd-src/external/bsd/unbound/dist/util/
H A Drandom.c97 return (long)arc4random() & MAX_VALUE; in ub_random()
/netbsd-src/external/apache2/llvm/dist/libcxx/src/
H A Drandom.cpp82 return arc4random();
/netbsd-src/external/mit/expat/dist/
H A DConfigureChecks.cmake33 check_symbol_exists("arc4random" "${_bsd}stdlib.h" HAVE_ARC4RANDOM)
/netbsd-src/sbin/newfs/
H A 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/
H A Droken.h317 # define rk_random() arc4random()
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c71 return arc4random(); in randombytes_sysrandom()

12345