Searched refs:random (Results 1 - 25 of 333) sorted by relevance

1234567891011>>

/freebsd-9.3-release/games/random/
H A DMakefile4 PROG= random
5 MAN= random.6
6 SRCS= random.c randomize_fd.c
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-9.3-release/tools/test/testfloat/
H A Drandom.c31 #include "random.h"
36 return (bits8) ( random()>>4 );
43 return ( random() & 0x0000ffff );
50 return ( ( (uint32) random()<<16) | ( (uint32) random() & 0x0000ffff) );
/freebsd-9.3-release/usr.sbin/bsdinstall/scripts/
H A Dentropy29 dd if=/dev/random of=$BSDINSTALL_CHROOT/entropy bs=4096 count=1
/freebsd-9.3-release/etc/rc.d/
H A Dinitrandom20 cat "${1}" | dd of=/dev/random bs=8k 2>/dev/null
26 soft_random_generator=`sysctl kern.random 2>/dev/null`
32 if [ -w /dev/random ]; then
34 ${SYSCTL} kern.random.sys.harvest.interrupt=1 >/dev/null
37 ${SYSCTL} kern.random.sys.harvest.interrupt=0 >/dev/null
41 ${SYSCTL} kern.random.sys.harvest.ethernet=1 >/dev/null
44 ${SYSCTL} kern.random.sys.harvest.ethernet=0 >/dev/null
48 ${SYSCTL} kern.random.sys.harvest.point_to_point=1 >/dev/null
51 ${SYSCTL} kern.random.sys.harvest.point_to_point=0 >/dev/null
60 | dd of=/dev/random b
[all...]
H A Drandom6 # PROVIDE: random
13 name="random"
20 cat "${1}" | dd of=/dev/random bs=8k 2>/dev/null
26 # Reseed /dev/random with previously stored entropy.
33 if [ -w /dev/random ]; then
46 if [ -w /dev/random ]; then
56 # Write some entropy so when the machine reboots /dev/random
82 dd if=/dev/random of=${entropy_file_confirmed} \
/freebsd-9.3-release/sys/ofed/include/linux/
H A Drandom.h32 #include <sys/random.h>
/freebsd-9.3-release/contrib/top/
H A Dtop.local.H54 * If the local system's getpwnam interface uses random access to retrieve
65 #define RANDOM_PW %random%
/freebsd-9.3-release/games/
H A DMakefile15 random
/freebsd-9.3-release/sys/cddl/compat/opensolaris/sys/
H A Drandom.h32 #include_next <sys/random.h>
/freebsd-9.3-release/sys/libkern/
H A Drandom.c29 * @(#)random.c 8.1 (Berkeley) 6/10/93
49 (void)random();
53 * Pseudo-random number generator for randomizing the profiling clock,
58 random() function
/freebsd-9.3-release/sys/dev/syscons/star/
H A Dstar_saver.c93 random() % (scp->xsize*scp->ysize);
97 cell = random() % NUM_STARS;
100 colors[random()%sizeof(color16)] << 8);
101 if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) {
102 stars[cell][0] = random() % (scp->xsize*scp->ysize);
/freebsd-9.3-release/sys/modules/random/
H A DMakefile3 .PATH: ${.CURDIR}/../../dev/random
7 KMOD= random
/freebsd-9.3-release/tools/regression/geom_raid3/
H A Dtest-12.t19 dd if=/dev/random of=/dev/md${us0} count=$nblocks1 >/dev/null 2>&1
20 dd if=/dev/random of=/dev/md${us1} count=$nblocks1 >/dev/null 2>&1
21 dd if=/dev/random of=/dev/md${us2} count=$nblocks1 >/dev/null 2>&1
29 dd if=/dev/random of=/dev/md${us1} count=$nblocks2 >/dev/null 2>&1
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c61 int fd = -1, random, ps = sysconf(_SC_PAGESIZE); local
66 if ((random = open("/dev/random", O_RDONLY)) == -1)
67 fatal("couldn't open /dev/random");
102 * Every thousand iterations, change our random gunk.
104 read(random, addr, ps);
107 read(random, &ioc, sizeof (ioc));
/freebsd-9.3-release/lib/libstand/
H A Drandom.c29 * @(#)random.c 8.1 (Berkeley) 6/10/93
47 * Pseudo-random number generator for randomizing the profiling clock,
52 random() function
/freebsd-9.3-release/tools/regression/geom_gate/
H A Dtest-2.sh9 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
10 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
H A Dtest-2.t9 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
10 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
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
/freebsd-9.3-release/sys/dev/random/
H A Dharvest.c38 #include <sys/random.h>
45 #include <dev/random/randomdev_soft.h>
113 /* Fill buf[] with random(9) output */
115 randval = random();
H A Dprobe.c40 #include <sys/random.h>
51 #include <dev/random/randomdev.h>
52 #include <dev/random/randomdev_soft.h>
/freebsd-9.3-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 \
43 MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \
44 random.3 srandomdev.3
/freebsd-9.3-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-9.3-release/tools/regression/acct/
H A Dpack.c84 tv.tv_sec = random();
85 tv.tv_usec = (random() % 1000000);
89 l = random();
/freebsd-9.3-release/contrib/bzip2/
H A DspewG.c44 p = 25+random()%50;

Completed in 124 milliseconds

1234567891011>>