Home
last modified time | relevance | path

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

12345678910>>...25

/freebsd-13.1/tests/sys/netinet6/frag6/
H A Dfrag6_17.py32 import random as random namespace
70 random.seed()
74 fid=random.randint(0,0xffff)
75 foffset=random.randint(0,0xffff)
76 fm=random.randint(0,1)
H A Dfrag6_18.py32 import random as random namespace
70 random.seed()
74 fid=random.randint(0,0xffff)
75 foffset=random.randint(0,0xffff)
76 fm=random.randint(0,1)
/freebsd-13.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-13.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-13.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 …]
/freebsd-13.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-13.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-13.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-13.1/crypto/openssl/doc/man1/
H A Drand.pod6 rand - generate pseudo-random bytes
21 This command generates I<num> random bytes using a cryptographically
22 secure pseudo random number generator (CSPRNG).
24 The random bytes are generated using the L<RAND_bytes(3)> function,
44 A file or files containing random data used to seed the random number
54 Writes random data to the specified I<file> upon exit.
70 about the state of the random-number generator in a file that was loaded
/freebsd-13.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-13.1/libexec/rc/rc.d/
H A Drandom27 dd if=/dev/random of="$f" bs=4096 count=1 status=none &&
39 if dd if="$f" of=/dev/random bs=4096 2>/dev/null ; then
52 ${SYSCTL} kern.random.harvest.mask=${harvest_mask} > /dev/null
53 ${SYSCTL_N} kern.random.harvest.mask_symbolic
58 if [ ! -w /dev/random ] ; then
/freebsd-13.1/contrib/apr/random/unix/
H A Dapr_random.c56 void *random, in apr_random_secure_bytes() argument
60 arc4random_buf(random, bytes); in apr_random_secure_bytes()
65 void *random, in apr_random_insecure_bytes() argument
69 arc4random_buf(random, bytes); in apr_random_insecure_bytes()
/freebsd-13.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-13.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-13.1/usr.bin/random/
H A DMakefile4 PROG= random
5 MAN= random.6
6 SRCS= random.c randomize_fd.c
/freebsd-13.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 \
57 MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \
58 random.3 srandomdev.3
/freebsd-13.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-13.1/contrib/apr-util/dbd/
H A Dapr_dbd.c317 const char *statement, int random) in apr_dbd_select() argument
319 return driver->select(pool,handle,res,statement,random); in apr_dbd_select()
490 apr_dbd_prepared_t *statement, int random, in apr_dbd_pselect() argument
493 return driver->pselect(pool,handle,res,statement,random,args); in apr_dbd_pselect()
513 int random, ...) in apr_dbd_pvselect() argument
517 va_start(args, random); in apr_dbd_pvselect()
518 ret = driver->pvselect(pool,handle,res,statement,random,args); in apr_dbd_pvselect()
538 return driver->pbselect(pool,handle,res,statement,random,args); in apr_dbd_pbselect()
558 int random, ...) in apr_dbd_pvbselect() argument
562 va_start(args, random); in apr_dbd_pvbselect()
[all …]
/freebsd-13.1/tests/sys/geom/class/gate/
H A Dggate_test.sh31 dd if=/dev/random of=/dev/$work bs=1m count=1 conv=notrunc
33 dd if=/dev/random of=/dev/$src bs=1m count=1 conv=notrunc
72 dd if=/dev/random of=work bs=1m count=1
73 dd if=/dev/random of=src bs=1m count=1
110 dd if=/dev/random of=$work bs=1m count=1 conv=notrunc
112 dd if=/dev/random of=$src bs=1m count=1 conv=notrunc
/freebsd-13.1/tests/sys/netinet/libalias/
H A Dperf.c78 } nat, usenat, unnat, random, attack; in main() local
112 bzero(&random, sizeof(random)); in main()
188 random.ok++; in main()
190 random.fail++; in main()
290 printf("RANDOM ok : %9lu\n", random.ok); in main()
291 printf("RANDOM fail: %9lu\n", random.fail); in main()
299 random.ok + random.fail + in main()
/freebsd-13.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-13.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 …]

12345678910>>...25