Static `masked rejection` function called by random_bounded_uint64(...) */
| 1114 | |
| 1115 | /* Static `masked rejection` function called by random_bounded_uint64(...) */ |
| 1116 | static inline uint64_t bounded_masked_uint64(bitgen_t *bitgen_state, |
| 1117 | uint64_t rng, uint64_t mask) { |
| 1118 | uint64_t val; |
| 1119 | |
| 1120 | while ((val = (next_uint64(bitgen_state) & mask)) > rng) |
| 1121 | ; |
| 1122 | |
| 1123 | return val; |
| 1124 | } |
| 1125 | |
| 1126 | /* Static `masked rejection` function called by |
| 1127 | * random_buffered_bounded_uint32(...) */ |
no test coverage detected