Home
last modified time | relevance | path

Searched refs:RAND_MAX (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/ntp/libntp/lib/isc/
H A Drandom.c85 #if RAND_MAX >= 0xfffff in isc_random_get()
88 #elif RAND_MAX >= 0x7fff in isc_random_get()
93 #error RAND_MAX is too small in isc_random_get()
/freebsd/tests/sys/netinet/libalias/
H A Dutil.c67 res = (r/4 < RAND_MAX/9) ? 1 in randcmp()
68 : (r/5 < RAND_MAX/9) ? 0 in randcmp()
/freebsd/tests/sys/aio/
H A Daio_kqueue_test.c135 if (result < RAND_MAX/32) { in main()
136 if (result > RAND_MAX/64) { in main()
/freebsd/contrib/ofed/opensm/include/vendor/
H A Dosm_vendor_mlx_svc.h191 return (rand() / (double)RAND_MAX < OSMV_DROP_RATE); in osmv_random_drop()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zhack/
H A Dlibrary.kshlib123 RAND_MAX="$((2**15 - 1))"
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_db_files.c740 k = floor(1.0 * rand() / RAND_MAX * 100); in main()
745 is_add = (rand() < RAND_MAX / 2); in main()
/freebsd/include/
H A Dstdlib.h70 #define RAND_MAX 0x7fffffff macro
/freebsd/contrib/llvm-project/libcxx/include/
H A Dcstdlib22 RAND_MAX
/freebsd/contrib/ldns/
H A Dacx_nlnetlabs.m488 # AHX_CONFIG_RAND_MAX - define RAND_MAX if needed.
1136 dnl Define RAND_MAX if not defined
1139 #ifndef RAND_MAX
1140 #define RAND_MAX 2147483647
/freebsd/contrib/unbound/
H A Dacx_nlnetlabs.m497 # AHX_CONFIG_RAND_MAX - define RAND_MAX if needed.
1221 dnl Define RAND_MAX if not defined
1224 #ifndef RAND_MAX
1225 #define RAND_MAX 2147483647
/freebsd/sys/contrib/openzfs/cmd/raidz_test/
H A Draidz_test.c667 if (rand() < (RAND_MAX/4)) in sweep_thread()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DThreadList.cpp634 (RAND_MAX + 1.0)); in WillResume()
/freebsd/contrib/ncurses/ncurses/tty/
H A Dlib_mvcur.c1203 i = (RAND_MAX / n) * n; in roll()
/freebsd/usr.sbin/route6d/
H A Droute6d.c3446 interval = (int)(timer + timer * RIPRANDDEV * (r / RAND_MAX - 0.5)); in ripinterval()
3459 (RIP_TRIG_INT6_MAX - RIP_TRIG_INT6_MIN) * (r / RAND_MAX));
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DCSymbolMap.inc152 SYMBOL(RAND_MAX, None, <stdlib.h>)
H A DStdSymbolMap.inc428 SYMBOL(RAND_MAX, None, <cstdlib>)
429 SYMBOL(RAND_MAX, None, <stdlib.h>)
/freebsd/contrib/tzcode/
H A Dzic.c1297 the typical case where RAND_MAX is one less than a power of two. in get_rand_u64()
1300 uint_fast64_t rand_max = RAND_MAX, in get_rand_u64()
/freebsd/contrib/one-true-awk/
H A DFIXES.1e1136 use RAND_MAX instead of literal in builtin().
/freebsd/contrib/unbound/doc/
H A DChangelog9263 - no need to define RAND_MAX from config.h.
9271 - Fix for ID bits on windows to use all 16. RAND_MAX was not