Searched refs:RAND_MAX (Results 1 - 25 of 85) sorted by relevance

1234

/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dmyrand.h19 #ifndef RAND_MAX
20 #define RAND_MAX 0x7fffffff macro
H A Drand_sleep.c67 usec = (delay - variation / 2) + variation * (double) myrand() / RAND_MAX;
/netbsd-current/lib/libc/stdlib/
H A Drand.c50 return (int)((next = next * 1103515245 + 12345) % ((u_long)RAND_MAX + 1));
H A Drand_r.c50 return ((*seed = *seed * 1103515245 + 12345) & RAND_MAX);
/netbsd-current/external/bsd/ntp/dist/lib/isc/
H A Drandom.c89 #if RAND_MAX >= 0xfffff
92 #elif RAND_MAX >= 0x7fff
97 #error RAND_MAX is too small
/netbsd-current/games/hangman/
H A Dgetword.c56 pos = (double) rand() / (RAND_MAX + 1.0) * (double) Dict_size;
/netbsd-current/external/bsd/tre/dist/tests/
H A Drandtest.c50 len = 1 + (int)(REGEXP_MAX_LEN * (rand() / (RAND_MAX + 1.0)));
55 regex[i] = 1 + (int)(255 * (rand() / (RAND_MAX + 1.0)));
/netbsd-current/external/gpl3/gdb.old/dist/gdbserver/
H A Dgdbthread.h189 ((count * (double) rand ()) / (RAND_MAX + 1.0));
/netbsd-current/external/gpl3/gdb/dist/gdbserver/
H A Dgdbthread.h198 ((count * (double) rand ()) / (RAND_MAX + 1.0));
/netbsd-current/external/gpl3/gdb/dist/gdb/
H A Dprocess-stratum-target.c178 = (int) ((count * (double) rand ()) / (RAND_MAX + 1.0));
/netbsd-current/external/lgpl3/gmp/dist/tests/rand/
H A Dgen.c420 drand = (double) i / (double) RAND_MAX;
/netbsd-current/include/
H A Dstdlib.h90 #define RAND_MAX 0x7fffffff macro
/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Dmpfr-mini-gmp.c69 return rand () / (RAND_MAX / 32768 + 1);
/netbsd-current/bin/ed/
H A Dcbc.c94 #define RAND_DIV (((unsigned) RAND_MAX + 1) >> 8)
/netbsd-current/external/bsd/openldap/dist/tests/progs/
H A Dslapd-mtread.c560 int r = ((double)nvalues)*rand()/(RAND_MAX + 1.0);
615 int r = ((double)range)*rand()/(RAND_MAX + 1.0);
H A Dslapd-search.c265 int r = ((double)nvalues)*rand()/(RAND_MAX + 1.0);
H A Dslapd-read.c231 int r = ((double)nvalues)*rand()/(RAND_MAX + 1.0);
H A Dslapd-bind.c502 j = ((double)ndns)*rand()/(RAND_MAX + 1.0);
/netbsd-current/sbin/newfs_lfs/
H A Dnewfs.c139 off = (((double)rand()) * (btodb(len))) / ((off_t)RAND_MAX + 1);
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/
H A Dstdlib.in.h596 # ifndef RAND_MAX
597 # define RAND_MAX 2147483647
/netbsd-current/external/bsd/openldap/dist/libraries/libldap/
H A Ddnssrv.c201 srv_seed = (float)seed / (float)RAND_MAX;
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dstdlib.in.h880 # ifndef RAND_MAX
881 # define RAND_MAX 2147483647
/netbsd-current/external/gpl3/gdb.old/lib/libgnulib/arch/aarch64/gnulib/import/
H A Dstdlib.h1119 # ifndef RAND_MAX
1120 # define RAND_MAX 2147483647
/netbsd-current/external/gpl3/gdb.old/lib/libgnulib/arch/aarch64eb/gnulib/import/
H A Dstdlib.h1119 # ifndef RAND_MAX
1120 # define RAND_MAX 2147483647
/netbsd-current/external/gpl3/gdb.old/lib/libgnulib/arch/alpha/gnulib/import/
H A Dstdlib.h1119 # ifndef RAND_MAX
1120 # define RAND_MAX 2147483647

Completed in 203 milliseconds

1234