| /src/external/bsd/libfido2/dist/fuzz/ |
| uniform_random.c | 24 * Calculate a uniformly distributed random number less than upper_bound 28 * returned is outside the range [0, 2**32 % upper_bound). This 30 * [2**32 % upper_bound, 2**32) which maps back to [0, upper_bound) 31 * after reduction modulo upper_bound. 34 uniform_random(uint32_t upper_bound) 38 if (upper_bound < 2) 42 min = -upper_bound % upper_bound; 56 return r % upper_bound; [all...] |
| /src/external/bsd/unbound/dist/compat/ |
| arc4random_uniform.c | 24 * Calculate a uniformly distributed random number less than upper_bound 28 * returned is outside the range [0, 2**32 % upper_bound). This 30 * [2**32 % upper_bound, 2**32) which maps back to [0, upper_bound) 31 * after reduction modulo upper_bound. 34 arc4random_uniform(uint32_t upper_bound) 38 if (upper_bound < 2) 42 min = -upper_bound % upper_bound; 56 return r % upper_bound; [all...] |
| /src/external/mpl/bind/dist/lib/isc/include/isc/ |
| random.h | 35 #define isc_random_uniform(upper_bound) \ 36 ((upper_bound) < 2 ? 0 : arc4random_uniform(upper_bound)) 51 isc_random_uniform(uint32_t upper_bound); 54 * less than upper_bound. 56 * This is better than ``isc_random() % upper_bound'' as it avoids 63 * resample is very small when the upper_bound is small, rising to 0.5 64 * when upper_bound is UINT32_MAX/2.
|
| /src/external/mpl/dhcp/bind/dist/lib/isc/ |
| random.c | 126 isc_random_uniform(uint32_t upper_bound) { 133 if (upper_bound < 2) { 138 min = 0x100000000UL % upper_bound; 140 /* Calculate (2**32 % upper_bound) avoiding 64-bit math */ 141 if (upper_bound > 0x80000000) { 142 min = 1 + ~upper_bound; /* 2**32 - upper_bound */ 145 min = ((0xffffffff - (upper_bound * 2)) + 1) % upper_bound; 162 return (r % upper_bound); [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/ |
| random.h | 57 isc_random_uniform(uint32_t upper_bound); 60 * less than upper_bound. This is recommended over 61 * constructions like ``isc_random() % upper_bound'' as it
|
| /src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/ |
| randombytes.c | 125 randombytes_uniform(const uint32_t upper_bound) 133 return implementation->uniform(upper_bound); 136 if (upper_bound < 2) { 139 min = (1U + ~upper_bound) % upper_bound; /* = 2**32 mod upper_bound */ 143 /* r is now clamped to a set whose size mod upper_bound == 0 146 return r % upper_bound;
|
| /src/sys/external/isc/libsodium/dist/src/libsodium/include/sodium/ |
| randombytes.h | 23 uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be used if NULL */ 45 uint32_t randombytes_uniform(const uint32_t upper_bound);
|
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.dwarf2/ |
| subrange.exp | 48 {upper_bound 191 DW_FORM_sdata} 72 {upper_bound 0xf4 DW_FORM_udata} 92 {upper_bound 9223372036854775807 DW_FORM_sdata}
|
| implptrconst.exp | 52 {upper_bound 7 DW_FORM_data1}
|
| subrange-enum.exp | 58 {upper_bound 2 DW_FORM_sdata}
|
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.dwarf2/ |
| subrange.exp | 48 {upper_bound 191 DW_FORM_sdata} 72 {upper_bound 0xf4 DW_FORM_udata} 92 {upper_bound 9223372036854775807 DW_FORM_sdata}
|
| implptrconst.exp | 52 {upper_bound 7 DW_FORM_data1}
|
| subrange-enum.exp | 58 {upper_bound 2 DW_FORM_sdata}
|
| /src/lib/libc/stdio/ |
| gettemp.c | 62 arc4random_uniform(uint32_t upper_bound) 64 if (upper_bound == 0) 68 uint32_t limit = RAND_MAX - (RAND_MAX % upper_bound); 74 return r % upper_bound;
|
| /src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/ |
| debug_fn_imps.hpp | 70 const_iterator upper_bound_it = upper_bound(PB_DS_V2F(*it));
|
| split_join_fn_imps.hpp | 78 iterator it = upper_bound(r_key);
|
| /src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/ |
| debug_fn_imps.hpp | 70 const_iterator upper_bound_it = upper_bound(PB_DS_V2F(*it));
|
| split_join_fn_imps.hpp | 78 iterator it = upper_bound(r_key);
|
| /src/external/bsd/libevent/dist/ |
| arc4random.c | 504 * Calculate a uniformly distributed random number less than upper_bound 508 * returned is outside the range [0, 2**32 % upper_bound). This 510 * [2**32 % upper_bound, 2**32) which maps back to [0, upper_bound) 511 * after reduction modulo upper_bound. 514 arc4random_uniform(unsigned int upper_bound) 518 if (upper_bound < 2) 522 min = 0x100000000UL % upper_bound; 524 /* Calculate (2**32 % upper_bound) avoiding 64-bit math */ 525 if (upper_bound > 0x80000000 [all...] |
| /src/external/bsd/ntp/dist/sntp/libevent/ |
| arc4random.c | 505 * Calculate a uniformly distributed random number less than upper_bound 509 * returned is outside the range [0, 2**32 % upper_bound). This 511 * [2**32 % upper_bound, 2**32) which maps back to [0, upper_bound) 512 * after reduction modulo upper_bound. 515 arc4random_uniform(unsigned int upper_bound) 519 if (upper_bound < 2) 523 min = 0x100000000UL % upper_bound; 525 /* Calculate (2**32 % upper_bound) avoiding 64-bit math */ 526 if (upper_bound > 0x80000000 [all...] |
| /src/external/bsd/ntp/dist/scripts/ |
| plot_summary.in | 109 my ($lower_bound, $upper_bound, $rms); 135 $upper_bound = $1 + $2; 136 $line .= "$1 $lower_bound $upper_bound"; 138 $max_offs = max($max_offs, $upper_bound);
|
| /src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/bin_search_tree_/ |
| find_fn_imps.hpp | 84 upper_bound(key_const_reference r_key) const function in class:PB_DS_CLASS_C_DEC 103 upper_bound(key_const_reference r_key) function in class:PB_DS_CLASS_C_DEC
|
| /src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/bin_search_tree_/ |
| find_fn_imps.hpp | 84 upper_bound(key_const_reference r_key) const function in class:PB_DS_CLASS_C_DEC 103 upper_bound(key_const_reference r_key) function in class:PB_DS_CLASS_C_DEC
|
| /src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/splay_tree_/ |
| split_join_fn_imps.hpp | 94 node_pointer p_upper_bound = this->upper_bound(r_key).m_p_nd;
|
| /src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/splay_tree_/ |
| split_join_fn_imps.hpp | 94 node_pointer p_upper_bound = this->upper_bound(r_key).m_p_nd;
|