| 27 | } |
| 28 | |
| 29 | uint64_t pseudorand_(uint64_t max, uint64_t *offset) |
| 30 | { |
| 31 | init_if_needed(); |
| 32 | |
| 33 | assert(max); |
| 34 | |
| 35 | /* We try to avoid being order-dependent here. */ |
| 36 | if (randbytes_overridden()) { |
| 37 | uint64_t rand; |
| 38 | randbytes_(&rand, sizeof(rand), offset); |
| 39 | return rand % max; |
| 40 | } |
| 41 | return isaac64_next_uint(&isaac64, max); |
| 42 | } |
| 43 | |
| 44 | uint64_t pseudorand_u64_(uint64_t *offset) |
| 45 | { |
nothing calls this directly
no test coverage detected