/freebsd-9.3-release/games/random/ |
H A D | Makefile | 4 PROG= random 5 MAN= random.6 6 SRCS= random.c randomize_fd.c
|
H A D | random.c | 41 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 D | random.c | 31 #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 D | entropy | 29 dd if=/dev/random of=$BSDINSTALL_CHROOT/entropy bs=4096 count=1
|
/freebsd-9.3-release/etc/rc.d/ |
H A D | initrandom | 20 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 D | random | 6 # 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 D | random.h | 32 #include <sys/random.h>
|
/freebsd-9.3-release/contrib/top/ |
H A D | top.local.H | 54 * If the local system's getpwnam interface uses random access to retrieve 65 #define RANDOM_PW %random%
|
/freebsd-9.3-release/games/ |
H A D | Makefile | 15 random
|
/freebsd-9.3-release/sys/cddl/compat/opensolaris/sys/ |
H A D | random.h | 32 #include_next <sys/random.h>
|
/freebsd-9.3-release/sys/libkern/ |
H A D | random.c | 29 * @(#)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 D | star_saver.c | 93 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 D | Makefile | 3 .PATH: ${.CURDIR}/../../dev/random 7 KMOD= random
|
/freebsd-9.3-release/tools/regression/geom_raid3/ |
H A D | test-12.t | 19 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 D | badioctl.c | 61 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 D | random.c | 29 * @(#)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 D | test-2.sh | 9 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 D | test-2.t | 9 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 D | test-1.sh | 12 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 D | harvest.c | 38 #include <sys/random.h> 45 #include <dev/random/randomdev_soft.h> 113 /* Fill buf[] with random(9) output */ 115 randval = random();
|
H A D | probe.c | 40 #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 D | Makefile.inc | 12 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 D | local_passwd.c | 164 /* 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 D | pack.c | 84 tv.tv_sec = random(); 85 tv.tv_usec = (random() % 1000000); 89 l = random();
|
/freebsd-9.3-release/contrib/bzip2/ |
H A D | spewG.c | 44 p = 25+random()%50;
|