Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 706) sorted by relevance

12345678910>>...29

/freebsd-12.1/contrib/libstdc++/include/tr1/
H A Drandom1 // random number generation -*- C++ -*-
31 * @file tr1/random
164 * random number generation engine.
303 /** The type of the generated random value. */
371 * Gets the next random number in the sequence.
673 /** The type of the generated random value. */
722 * random number generator.
896 * random number generator.
1234 * A random number generator adaptor class that combines two random number
1648 * @brief A Bernoulli random number distribution.
[all …]
/freebsd-12.1/libexec/rc/rc.d/
H A Drandom27 dd if=/dev/random of="$f" bs=4096 count=1 status=none &&
37 if dd if="$f" of=/dev/random bs=4096 2>/dev/null ; then
50 ${SYSCTL} kern.random.harvest.mask=${harvest_mask} > /dev/null
51 ${SYSCTL_N} kern.random.harvest.mask_symbolic
56 if [ ! -w /dev/random ] ; then
120 dd if=/dev/random of=${entropy_file_confirmed} \
145 dd if=/dev/random of=${entropy_boot_file_confirmed} \
/freebsd-12.1/contrib/ntp/sntp/m4/
H A Dntp_crypto_rand.m422 dnl check for --disable-openssl-random
27 AC_MSG_CHECKING([if we want to use OpenSSL's crypto random (if available)])
29 [openssl-random],
31 [--enable-openssl-random],
32 [Use OpenSSL's crypto random number functions, if available (default is yes)]
47 AC_DEFINE([USE_OPENSSL_CRYPTO_RAND], [1], [Use OpenSSL's crypto random functions])
/freebsd-12.1/tests/sys/geom/class/eli/
H A Dsetkey_test.sh19 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none
22 atf_check dd if=/dev/random of=keyfile1 bs=512 count=16 status=none
23 atf_check dd if=/dev/random of=keyfile2 bs=512 count=16 status=none
24 atf_check dd if=/dev/random of=keyfile3 bs=512 count=16 status=none
25 atf_check dd if=/dev/random of=keyfile4 bs=512 count=16 status=none
26 atf_check dd if=/dev/random of=keyfile5 bs=512 count=16 status=none
108 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
133 atf_check dd if=/dev/random of=keyfile1 bs=512 count=16 status=none
134 atf_check dd if=/dev/random of=keyfile2 bs=512 count=16 status=none
H A Ddelkey_test.sh19 atf_check dd if=/dev/random of=keyfile1 bs=512 count=16 status=none
20 atf_check dd if=/dev/random of=keyfile2 bs=512 count=16 status=none
21 atf_check dd if=/dev/random of=keyfile3 bs=512 count=16 status=none
22 atf_check dd if=/dev/random of=keyfile4 bs=512 count=16 status=none
96 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
H A Dinit_test.sh48 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
49 atf_check dd if=/dev/random of=rnd bs=$MAX_SECSIZE count=${sectors} \
70 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
124 atf_check dd if=/dev/random of=keyfile0 bs=512 count=16 status=none
125 atf_check dd if=/dev/random of=keyfile1 bs=512 count=16 status=none
126 dd if=/dev/random bs=512 count=16 status=none | sha1 > passfile0
128 dd if=/dev/random bs=512 count=16 status=none | sha1 > passfile1
266 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
267 atf_check dd if=/dev/random of=rnd bs=$MAX_SECSIZE count=${sectors} \
308 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
[all …]
H A Dintegrity_test.sh60 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
61 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
106 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
107 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
150 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
151 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
/freebsd-12.1/tools/test/testfloat/
H A Drandom.c36 return (bits8) ( random()>>4 ); in randomUint8()
43 return ( random() & 0x0000ffff ); in randomUint16()
50 return ( ( (uint32) random()<<16) | ( (uint32) random() & 0x0000ffff) ); in randomUint32()
/freebsd-12.1/sys/dev/syscons/star/
H A Dstar_saver.c82 random() % (scp->xsize*scp->ysize); in star_saver()
86 cell = random() % NUM_STARS; in star_saver()
89 color16[random()%sizeof(color16)] << 8); in star_saver()
90 if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) { in star_saver()
91 stars[cell][0] = random() % (scp->xsize*scp->ysize); in star_saver()
/freebsd-12.1/crypto/openssl/doc/man3/
H A DRAND_add.pod30 These functions can be used to seed the random generator and to check its
32 In general, manual (re-)seeding of the default OpenSSL random generator
38 RAND_status() indicates whether or not the random generator has been sufficiently
41 RAND_poll() uses the system's capabilities to seed the random generator using
42 random input obtained from polling various trusted entropy sources.
47 of the random generator.
54 The content of B<buf> cannot be recovered from subsequent random generator output.
55 Applications that intend to save and restore random state in an external file
61 usage by the random seed sources. Some seed sources maintain open file
74 RAND_status() returns 1 if the random generator has been seeded
/freebsd-12.1/contrib/netbsd-tests/sys/uvm/
H A Dt_uvm_physseg_load.c344 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY()
373 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY()
402 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY()
431 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY()
460 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY()
489 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY()
518 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY()
565 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_2); in ATF_TC_BODY()
614 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_3); in ATF_TC_BODY()
663 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_4); in ATF_TC_BODY()
[all …]
/freebsd-12.1/release/picobsd/tinyware/passwd/
H A Dlocal_passwd.c174 to64(&salt[5], random(), 4);
187 to64(&salt[0], random(), 3);
190 to64(&salt[8], random(), 5);
191 to64(&salt[13], random(), 5);
192 to64(&salt[17], random(), 5);
193 to64(&salt[22], random(), 5);
/freebsd-12.1/tests/sys/cddl/zfs/tests/txg_integrity/
H A Dmake_patterns.py9 import random
23 [random.randrange(0,
32 random.shuffle(perm)
38 chunks = random.sample(range(NUM_CHUNKS), NUM_CHUNKS / 2)
/freebsd-12.1/crypto/openssl/doc/man7/
H A DRAND.pod6 - the OpenSSL random generator
13 can be used as a cryptographically-secure pseudo-random number generator
20 the deterministic random bit generator (DRBG) model as described in
21 [NIST SP 800-90A Rev. 1]. The default random generator will initialize
24 It seeds and reseeds itself automatically using trusted random sources
28 just use L<RAND_bytes(3)> to obtain random data.
31 Although (re-)seeding is automatic, it can fail because no trusted random source
33 random seed material.
64 Changing the default random generator or its default parameters should be necessary
H A DRAND_DRBG.pod5 RAND_DRBG - the deterministic random bit generator
14 which implements a deterministic random bit generator (DRBG).
15 A DRBG is a certain type of cryptographically-secure pseudo-random
20 application developers for obtaining random bytes, the RAND_DRBG API
27 Unless you have very specific requirements for your random generator,
29 The usual way to obtain random bytes is to use L<RAND_bytes(3)> or
119 will lock the <master> DRBG automatically for obtaining random input.
142 | random generator | | and private keys for certificates |
146 The usual way to obtain random bytes is to call RAND_bytes(...) or
151 request for random data.
[all …]
/freebsd-12.1/crypto/openssl/doc/man1/
H A Drand.pod6 rand - generate pseudo-random bytes
21 The B<rand> command outputs I<num> pseudo-random bytes after seeding
22 the random number generator once. As in other B<openssl> command
42 A file or files containing random data used to seed the random number
50 Writes random data to the specified I<file> upon exit.
/freebsd-12.1/tests/sys/geom/class/raid3/
H A D12_test.sh16 dd if=/dev/random of=/dev/${us0} count=$nblocks1 >/dev/null 2>&1
17 dd if=/dev/random of=/dev/${us1} count=$nblocks1 >/dev/null 2>&1
18 dd if=/dev/random of=/dev/${us2} count=$nblocks1 >/dev/null 2>&1
26 dd if=/dev/random of=/dev/${us1} count=$nblocks2 >/dev/null 2>&1
/freebsd-12.1/lib/libc/stdlib/
H A DMakefile.inc16 random.c reallocarray.c reallocf.c realpath.c remque.c \
39 radixsort.3 rand.3 random.3 reallocarray.3 reallocf.3 realpath.3 \
56 MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \
57 random.3 srandomdev.3
/freebsd-12.1/contrib/apr-util/dbd/
H A Dapr_dbd.c320 const char *statement, int random) in apr_dbd_select() argument
322 return driver->select(pool,handle,res,statement,random); in apr_dbd_select()
493 apr_dbd_prepared_t *statement, int random, in apr_dbd_pselect() argument
496 return driver->pselect(pool,handle,res,statement,random,args); in apr_dbd_pselect()
516 int random, ...) in apr_dbd_pvselect() argument
520 va_start(args, random); in apr_dbd_pvselect()
521 ret = driver->pvselect(pool,handle,res,statement,random,args); in apr_dbd_pvselect()
541 return driver->pbselect(pool,handle,res,statement,random,args); in apr_dbd_pbselect()
561 int random, ...) in apr_dbd_pvbselect() argument
565 va_start(args, random); in apr_dbd_pvbselect()
[all …]
/freebsd-12.1/usr.bin/random/
H A DMakefile4 PROG= random
5 MAN= random.6
6 SRCS= random.c randomize_fd.c
/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c61 int fd = -1, random, ps = sysconf(_SC_PAGESIZE); in badioctl() local
66 if ((random = open("/dev/random", O_RDONLY)) == -1) in badioctl()
104 read(random, addr, ps); in badioctl()
107 read(random, &ioc, sizeof (ioc)); in badioctl()
/freebsd-12.1/tests/sys/geom/class/gate/
H A Dggate_test.sh26 dd if=/dev/random of=/dev/$work bs=1m count=1 conv=notrunc
28 dd if=/dev/random of=/dev/$src bs=1m count=1 conv=notrunc
67 dd if=/dev/random of=work bs=1m count=1
68 dd if=/dev/random of=src bs=1m count=1
105 dd if=/dev/random of=$work bs=1m count=1 conv=notrunc
107 dd if=/dev/random of=$src bs=1m count=1 conv=notrunc
/freebsd-12.1/contrib/apr-util/include/private/
H A Dapr_dbd_internal.h136 const char *statement, int random);
235 apr_dbd_prepared_t *statement, int random, va_list args);
261 int random, const char **args);
314 apr_dbd_prepared_t *statement, int random, va_list args);
340 int random, const void **args);
/freebsd-12.1/crypto/heimdal/kadmin/
H A Dkadmin-commands.in58 long = "random-password"
126 long = "random-key"
129 help = "set random key"
132 long = "random-password"
134 help = "set random password"
192 long = "random-key"
195 help = "set random key"
198 long = "random-password"
200 help = "set random password"
235 long = "random-key"
[all …]
/freebsd-12.1/contrib/apr/random/unix/
H A Dapr_random.c262 static void apr_random_block(apr_random_t *g,unsigned char *random) in apr_random_block() argument
266 hash(g->prng_hash,random,g->H,B_size(g)); in apr_random_block()
269 static void apr_random_bytes(apr_random_t *g,unsigned char *random, in apr_random_bytes() argument
282 memcpy(&random[n],g->randomness+B_size(g)-g->random_bytes,l); in apr_random_bytes()
289 void *random, in apr_random_secure_bytes() argument
294 apr_random_bytes(g,random,bytes); in apr_random_secure_bytes()
299 void *random, in apr_random_insecure_bytes() argument
304 apr_random_bytes(g,random,bytes); in apr_random_insecure_bytes()

12345678910>>...29