Skip to content

Commit

Permalink
Merge fa46f33 into 54b2b41
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Jun 26, 2019
2 parents 54b2b41 + fa46f33 commit 6adbebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion randomgen/src/pcg64/pcg64.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static INLINE void pcg_setseq_128_srandom_r(pcg_state_setseq_128 *rng,
pcg128_t initseq) {
rng->state = PCG_128BIT_CONSTANT(0ULL, 0ULL);
rng->inc.high = initseq.high << 1u;
rng->inc.high |= initseq.low & 0x800000000000ULL;
rng->inc.high |= initseq.low >> 63u;
rng->inc.low = (initseq.low << 1u) | 1u;
pcg_setseq_128_step_r(rng);
rng->state = _pcg128_add(rng->state, initstate);
Expand Down

0 comments on commit 6adbebf

Please sign in to comment.