| 172 | } |
| 173 | |
| 174 | static inline void pcg_setseq_128_srandom_r(pcg_state_setseq_128 *rng, |
| 175 | pcg128_t initstate, |
| 176 | pcg128_t initseq) { |
| 177 | rng->state = PCG_128BIT_CONSTANT(0ULL, 0ULL); |
| 178 | rng->inc.high = initseq.high << 1u; |
| 179 | rng->inc.high |= initseq.low >> 63u; |
| 180 | rng->inc.low = (initseq.low << 1u) | 1u; |
| 181 | pcg_setseq_128_step_r(rng); |
| 182 | rng->state = pcg128_add(rng->state, initstate); |
| 183 | pcg_setseq_128_step_r(rng); |
| 184 | } |
| 185 | |
| 186 | static inline uint64_t |
| 187 | pcg_setseq_128_xsl_rr_64_random_r(pcg_state_setseq_128 *rng) { |
nothing calls this directly
no test coverage detected