Searched refs:random (Results 26 - 50 of 345) sorted by relevance

1234567891011>>

/freebsd-10.0-release/lib/libc/stdlib/
H A DMakefile.inc12 random.c reallocf.c realpath.c remque.c strfmon.c strtoimax.c \
27 radixsort.3 rand.3 random.3 reallocf.3 \
42 MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \
43 random.3 srandomdev.3
/freebsd-10.0-release/release/picobsd/tinyware/passwd/
H A Dlocal_passwd.c164 /* grab a random printable character that isn't a colon */
172 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);
/freebsd-10.0-release/games/random/
H A Drandom.c41 static const char sccsid[] = "@(#)random.c 8.5 (Berkeley) 4/5/94";
131 errx(1, "denominator must be <= 256 for random exit.");
159 /* Compute a random exit status between 0 and denom - 1. */
161 return (int)(denom * random() / RANDOM_MAX_PLUS1);
165 * We find a random number between 0 and denom - 1 and, if it's
169 selected = (int)(denom * random() / RANDOM_MAX_PLUS1) == 0;
179 selected = (int)(denom * random() /
192 fprintf(stderr, "usage: random [-elrUuw] [-f filename] [denominator]\n");
/freebsd-10.0-release/sys/dev/random/
H A Dharvest.c38 #include <sys/random.h>
46 #include <dev/random/randomdev_soft.h>
113 log(LOG_WARNING, "random device not loaded; using insecure entropy\n");
119 /* Fill buf[] with random(9) output */
121 randval = random();
H A Drandom_adaptors.h38 const char *name; /* name of random adaptor */
50 * random module (SI_SUB_DRIVERS/SI_ORDER_MIDDLE)
61 MODULE_DEPEND(name, random, 1, 1, 1);
66 /* kern.random sysctls */
H A Dlive_entropy_sources.c36 #include <sys/random.h>
45 #include <dev/random/randomdev.h>
46 #include <dev/random/randomdev_soft.h>
47 #include <dev/random/random_adaptors.h>
48 #include <dev/random/random_harvestq.h>
H A Drandom_adaptors.c39 #include <sys/random.h>
45 #include <dev/random/randomdev.h>
46 #include <dev/random/randomdev_soft.h>
47 #include <dev/random/random_adaptors.h>
98 * Walk a list of registered random(4) adaptors and pick the last non-selected
113 if (TUNABLE_STR_FETCH("kern.random.active_adaptor", rngs, sizeof(rngs))) {
120 printf("%s random adaptor is not available,"
145 printf("Falling back to <%s> random adaptor\n",
234 SYSCTL_NODE(_kern, OID_AUTO, random, CTLFLAG_RW, 0, "Random Number Generator");
H A Drandom_harvestq.c44 #include <sys/random.h>
52 #include <dev/random/randomdev.h>
53 #include <dev/random/randomdev_soft.h>
54 #include <dev/random/random_adaptors.h>
55 #include <dev/random/random_harvestq.h>
56 #include <dev/random/live_entropy_sources.h>
57 #include <dev/random/rwfile.h>
114 printf("random: read %zu bytes from preloaded cache\n", size);
118 printf("random: no preloaded entropy cache available\n");
132 printf("random
[all...]
H A Drandomdev_soft.c52 #include <sys/random.h>
61 #include <dev/random/randomdev.h>
62 #include <dev/random/randomdev_soft.h>
63 #include <dev/random/random_harvestq.h>
64 #include <dev/random/random_adaptors.h>
66 #include <dev/random/yarrow.h>
69 #include <dev/random/fortuna.h>
109 TUNABLE_INT("kern.random.sys.seeded", &random_context.seeded);
207 printf("random: unblocking device.\n");
243 printf("random
[all...]
/freebsd-10.0-release/tools/regression/acct/
H A Dpack.c84 tv.tv_sec = random();
85 tv.tv_usec = (random() % 1000000);
89 l = random();
/freebsd-10.0-release/contrib/bzip2/
H A DspewG.c44 p = 25+random()%50;
/freebsd-10.0-release/tools/regression/geom_gate/
H A Dtest-1.sh12 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
13 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
H A Dtest-1.t12 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
13 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
H A Dtest-3.sh11 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
12 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
H A Dtest-3.t11 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
12 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
/freebsd-10.0-release/contrib/apr/include/
H A Dapr_random.h93 * Generate cryptographically insecure random bytes.
95 * @param random Buffer to fill with random bytes
99 void *random,
103 * Generate cryptographically secure random bytes.
105 * @param random Buffer to fill with random bytes
109 void *random,
/freebsd-10.0-release/contrib/libstdc++/include/precompiled/
H A Dstdtr1c++.h54 #include <tr1/random>
/freebsd-10.0-release/lib/libc/db/test/hash.tests/
H A Ddriver2.c93 key.size = 128 + (random()&1023);
94 content.size = 128 + (random()&1023);
/freebsd-10.0-release/sys/mips/conf/
H A DDIR-82522 nodevice random
/freebsd-10.0-release/tools/regression/geom_eli/
H A Ddelkey.t15 dd if=/dev/random of=${keyfile1} bs=512 count=16 >/dev/null 2>&1
16 dd if=/dev/random of=${keyfile2} bs=512 count=16 >/dev/null 2>&1
17 dd if=/dev/random of=${keyfile3} bs=512 count=16 >/dev/null 2>&1
18 dd if=/dev/random of=${keyfile4} bs=512 count=16 >/dev/null 2>&1
H A Dinit-i-P.t12 dd if=/dev/random of=${keyfile} bs=512 count=16 >/dev/null 2>&1
H A Dsetkey.t17 dd if=/dev/random of=${rnd} bs=512 count=${sectors} >/dev/null 2>&1
19 dd if=/dev/random of=${keyfile1} bs=512 count=16 >/dev/null 2>&1
20 dd if=/dev/random of=${keyfile2} bs=512 count=16 >/dev/null 2>&1
21 dd if=/dev/random of=${keyfile3} bs=512 count=16 >/dev/null 2>&1
22 dd if=/dev/random of=${keyfile4} bs=512 count=16 >/dev/null 2>&1
23 dd if=/dev/random of=${keyfile5} bs=512 count=16 >/dev/null 2>&1
/freebsd-10.0-release/tools/test/malloc/
H A Dmain.c35 j = random() % NBUCKETS;
36 k = random() % NSIZE;
/freebsd-10.0-release/contrib/apr-util/include/private/
H A Dapr_dbd_internal.h130 * @param random - 1 to support random access to results (seek any row);
136 const char *statement, int random);
158 * @param rownum - row number, or -1 for "next row". Ignored if random
229 * @param random - Whether to support random-access to results
235 apr_dbd_prepared_t *statement, int random, va_list args);
255 * @param random - Whether to support random-access to results
261 int random, cons
[all...]
/freebsd-10.0-release/sys/dev/syscons/dragon/
H A Ddragon_saver.c39 #include <sys/random.h>
142 dragon_pal[3+tmp] = (u_char)random();
146 mul = ((random() & 7) + 1) * (SCRW / 320);
147 org_x = random() % SCRW; org_y = random() % SCRH;

Completed in 119 milliseconds

1234567891011>>