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

/freebsd-9.3-release/contrib/bind9/lib/isc/
H A Drandom.c87 #if RAND_MAX >= 0xfffff
90 #elif RAND_MAX >= 0x7fff
95 #error RAND_MAX is too small
/freebsd-9.3-release/contrib/ntp/lib/isc/
H A Drandom.c87 #if RAND_MAX >= 0xfffff
90 #elif RAND_MAX >= 0x7fff
95 #error RAND_MAX is too small
/freebsd-9.3-release/lib/libc/stdlib/
H A Drand.c58 return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1));
/freebsd-9.3-release/tools/regression/aio/kqueue/
H A Daio_kqueue.c118 if (result < RAND_MAX/32) {
119 if (result > RAND_MAX/64) {
/freebsd-9.3-release/contrib/ofed/management/opensm/include/vendor/
H A Dosm_vendor_mlx_svc.h197 return (rand() / (double)RAND_MAX < OSMV_DROP_RATE);
/freebsd-9.3-release/include/
H A Dstdlib.h72 #define RAND_MAX 0x7ffffffd macro
/freebsd-9.3-release/contrib/ofed/management/opensm/opensm/
H A Dosm_db_files.c692 k = floor(1.0 * rand() / RAND_MAX * 100);
697 is_add = (rand() < RAND_MAX / 2);
/freebsd-9.3-release/contrib/gdb/gdb/
H A Dlin-lwp.c1062 ((num_events * (double) rand ()) / (RAND_MAX + 1.0));
/freebsd-9.3-release/contrib/ncurses/ncurses/tty/
H A Dlib_mvcur.c1016 i = (RAND_MAX / n) * n;
/freebsd-9.3-release/contrib/one-true-awk/
H A DFIXES733 use RAND_MAX instead of literal in builtin().
H A Drun.c66 /* #ifndef RAND_MAX */
67 /* #define RAND_MAX 32767 */ /* all that ansi guarantees */
1524 /* in principle, rand() returns something in 0..RAND_MAX */
1525 u = (Awkfloat) (rand() % RAND_MAX) / RAND_MAX;
/freebsd-9.3-release/usr.sbin/route6d/
H A Droute6d.c3482 interval = (int)(timer + timer * RIPRANDDEV * (r / RAND_MAX - 0.5));
3494 (RIP_TRIG_INT6_MAX - RIP_TRIG_INT6_MIN) * (r / RAND_MAX));

Completed in 260 milliseconds