Home
last modified time | relevance | path

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

12345678910>>...28

/NextBSD/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 …]
/NextBSD/etc/rc.d/
HDrandom25 dd if=/dev/random of="$f" bs=4096 count=1 2>/dev/null
34 if dd if="$f" of=/dev/random bs=4096 2>/dev/null ; then
47 ${SYSCTL} kern.random.harvest.mask=${harvest_mask} > /dev/null
48 ${SYSCTL_N} kern.random.harvest.mask_symbolic
53 if [ ! -w /dev/random ] ; then
117 dd if=/dev/random of=${entropy_file_confirmed} \
142 dd if=/dev/random of=${entropy_boot_file_confirmed} \
/NextBSD/crypto/openssl/doc/crypto/
HDrand.pod5 rand - pseudo-random number generator
51 These functions implement a cryptographically secure pseudo-random
53 example to generate random keys, and applications can use it when they
57 mouse movements or keys pressed at random by the user. This is
62 L<RAND_bytes(3)|RAND_bytes(3)> describes how to obtain random data from the
80 to random numbers.
84 An initial source of random 'state'.
89 4096 bit RSA keys, 2 2048 bit random strings are required (at a minimum).
98 Any RNG seed data should influence all subsequent random numbers
99 generated. This implies that any random seed data entered will have
[all …]
HDBN_rand.pod5 BN_rand, BN_pseudo_rand, BN_rand_range, BN_pseudo_rand_range - generate pseudo-random number
21 BN_rand() generates a cryptographically strong pseudo-random number of
23 most significant bit of the random number can be zero. If B<top> is 0,
25 the number will be set to 1, so that the product of two such random
30 BN_pseudo_rand() does the same, but pseudo-random numbers generated by
35 BN_rand_range() generates a cryptographically strong pseudo-random
HDRAND_bytes.pod5 RAND_bytes, RAND_pseudo_bytes - generate random data
17 RAND_bytes() puts B<num> cryptographically strong pseudo-random bytes
21 RAND_pseudo_bytes() puts B<num> pseudo-random bytes into B<buf>.
22 Pseudo-random byte sequences generated by RAND_pseudo_bytes() will be
29 the new pseudo-random bytes unless disabled at compile time (see FAQ).
HDEVP_SealInit.pod22 encryption. They generate a random key and IV (if required) then
27 with cipher B<type> using a random secret key and IV. B<type> is normally
58 Because a random secret key is generated the random number generator
67 bulk encryption and the small random symmetric key used is transferred
/NextBSD/contrib/ntp/sntp/m4/
HDntp_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])
/NextBSD/tools/test/testfloat/
HDrandom.c36 return (bits8) ( random()>>4 ); in randomUint8()
43 return ( random() & 0x0000ffff ); in randomUint16()
50 return ( ( (uint32) random()<<16) | ( (uint32) random() & 0x0000ffff) ); in randomUint32()
/NextBSD/sys/dev/syscons/star/
HDstar_saver.c93 random() % (scp->xsize*scp->ysize); in star_saver()
97 cell = random() % NUM_STARS; in star_saver()
100 colors[random()%sizeof(color16)] << 8); in star_saver()
101 if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) { in star_saver()
102 stars[cell][0] = random() % (scp->xsize*scp->ysize); in star_saver()
/NextBSD/release/picobsd/tinyware/passwd/
HDlocal_passwd.c172 to64(&salt[5], random(), 4);
185 to64(&salt[0], random(), 3);
188 to64(&salt[8], random(), 5);
189 to64(&salt[13], random(), 5);
190 to64(&salt[17], random(), 5);
191 to64(&salt[22], random(), 5);
/NextBSD/lib/libc/stdlib/
HDMakefile.inc14 random.c reallocarray.c reallocf.c realpath.c remque.c strfmon.c \
30 radixsort.3 rand.3 random.3 reallocarray.3 reallocf.3 \
46 MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \
47 random.3 srandomdev.3
/NextBSD/tools/regression/geom_raid3/
HDtest-12.t16 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
/NextBSD/tools/regression/geom_eli/
HDsetkey.t18 dd if=/dev/random of=${rnd} bs=512 count=${sectors} >/dev/null 2>&1
20 dd if=/dev/random of=${keyfile1} bs=512 count=16 >/dev/null 2>&1
21 dd if=/dev/random of=${keyfile2} bs=512 count=16 >/dev/null 2>&1
22 dd if=/dev/random of=${keyfile3} bs=512 count=16 >/dev/null 2>&1
23 dd if=/dev/random of=${keyfile4} bs=512 count=16 >/dev/null 2>&1
24 dd if=/dev/random of=${keyfile5} bs=512 count=16 >/dev/null 2>&1
HDdelkey.t16 dd if=/dev/random of=${keyfile1} bs=512 count=16 >/dev/null 2>&1
17 dd if=/dev/random of=${keyfile2} bs=512 count=16 >/dev/null 2>&1
18 dd if=/dev/random of=${keyfile3} bs=512 count=16 >/dev/null 2>&1
19 dd if=/dev/random of=${keyfile4} bs=512 count=16 >/dev/null 2>&1
/NextBSD/contrib/apr-util/dbd/
HDapr_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()
538 apr_dbd_prepared_t *statement, int random, in apr_dbd_pbselect() argument
541 return driver->pbselect(pool,handle,res,statement,random,args); in apr_dbd_pbselect()
561 int random, ...) in apr_dbd_pvbselect() argument
[all …]
/NextBSD/usr.bin/random/
HDMakefile4 PROG= random
5 MAN= random.6
6 SRCS= random.c randomize_fd.c
HDrandom.c161 return (int)(denom * random() / RANDOM_MAX_PLUS1); in main()
169 selected = (int)(denom * random() / RANDOM_MAX_PLUS1) == 0; in main()
179 selected = (int)(denom * random() / in main()
/NextBSD/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/
HDbadioctl.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()
/NextBSD/contrib/apr-util/include/private/
HDapr_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);
/NextBSD/crypto/heimdal/kadmin/
HDkadmin-commands.in58 long = "random-password"
60 help = "use a random password (and print the password to stdout)"
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"
[all …]
/NextBSD/crypto/openssl/doc/apps/
HDrand.pod5 rand - generate pseudo-random bytes
18 The B<rand> command outputs I<num> pseudo-random bytes after seeding
19 the random number generator once. As in other B<openssl> command
36 for seeding the random number generator.
/NextBSD/contrib/apr/random/unix/
HDapr_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()
/NextBSD/contrib/apr-util/include/
HDapr_dbd.h291 const char *statement, int random);
434 apr_dbd_prepared_t *statement, int random,
467 int random, ...);
498 apr_dbd_prepared_t *statement, int random,
531 int random, ...);
/NextBSD/sys/dev/syscons/dragon/
HDdragon_saver.c142 dragon_pal[3+tmp] = (u_char)random(); in dragon_update()
146 mul = ((random() & 7) + 1) * (SCRW / 320); in dragon_update()
147 org_x = random() % SCRW; org_y = random() % SCRH; in dragon_update()
/NextBSD/sys/dev/syscons/plasma/
HDplasma_saver.c209 plasma_foci[i].x = random() % scrw; in plasma_init()
210 plasma_foci[i].y = random() % scrh; in plasma_init()
211 plasma_foci[i].vx = random() % 5 - 2; in plasma_init()
212 plasma_foci[i].vy = random() % 5 - 2; in plasma_init()

12345678910>>...28