Home
last modified time | relevance | path

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

12345678910>>...30

/freebsd-12-stable/contrib/libstdc++/include/tr1/
Drandom1 // random number generation -*- C++ -*-
31 * @file tr1/random
58 * A facility for generating random numbers on selected distributions.
135 * Converts a value generated by the adapted random number generator into a
136 * value in the input domain for the dependent random number distribution.
163 * Produces random numbers on a given disribution function using a un uniform
164 * random number generation engine.
187 * Constructs a variate generator with the uniform random number
188 * generator @p __eng for the random distribution @p __dist.
212 * Gets a reference to the underlying uniform random number generator
[all …]
/freebsd-12-stable/tests/sys/netinet6/frag6/
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)
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-12-stable/contrib/ntp/sntp/m4/
Dntp_crypto_rand.m423 dnl check for --disable-openssl-random
28 AC_MSG_CHECKING([if we want to use OpenSSL's crypto random (if available)])
30 [openssl-random],
32 [--enable-openssl-random],
33 [Use OpenSSL's crypto random number functions, if available (default is yes)]
48 AC_DEFINE([USE_OPENSSL_CRYPTO_RAND], [1], [Use OpenSSL's crypto random functions])
/freebsd-12-stable/tests/sys/geom/class/eli/
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
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
/freebsd-12-stable/tools/test/testfloat/
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-stable/crypto/openssl/doc/man3/
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-stable/sys/dev/syscons/star/
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-stable/contrib/netbsd-tests/sys/uvm/
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()
560 pf_chunk_size = (psize_t) random() % (psize_t) (PF_STEP - 1) + 1; in ATF_TC_BODY()
565 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_2); in ATF_TC_BODY()
609 pf_chunk_size = (psize_t) random() % (psize_t) (PF_STEP - 1) + 1; in ATF_TC_BODY()
[all …]
/freebsd-12-stable/crypto/openssl/doc/man1/
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-12-stable/release/picobsd/tinyware/passwd/
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-stable/tests/sys/cddl/zfs/tests/txg_integrity/
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-stable/libexec/rc/rc.d/
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-12-stable/crypto/openssl/doc/man7/
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
/freebsd-12-stable/contrib/apr/random/unix/
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-12-stable/tests/sys/geom/class/raid3/
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-stable/contrib/unbound/contrib/
Dunbound.init_yocto59 [ -e ${rootdir}/dev/random ] || touch ${rootdir}/dev/random
60 mount --bind -n /dev/random ${rootdir}/dev/random >/dev/null 2>&1;
82 umount ${rootdir}/dev/random >/dev/null 2>&1
/freebsd-12-stable/lib/libc/stdlib/
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-stable/contrib/apr-util/dbd/
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()
535 apr_dbd_prepared_t *statement, int random, in apr_dbd_pbselect() argument
538 return driver->pbselect(pool,handle,res,statement,random,args); in apr_dbd_pbselect()
558 int random, ...) in apr_dbd_pvbselect() argument
[all …]
/freebsd-12-stable/tests/sys/netinet/libalias/
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-12-stable/usr.bin/random/
DMakefile4 PROG= random
5 MAN= random.6
6 SRCS= random.c randomize_fd.c
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/
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-stable/tests/sys/geom/class/gate/
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-stable/contrib/apr-util/include/private/
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);

12345678910>>...30