vpxyz/xorshift

Higher bits are better

Closed this issue · 0 comments

vigna commented

return int64(x.Uint64() & (1<<63 - 1))

For xoroshiro128+, higher bits are increasingly better, so a right shift is a better way to extract 63 bits.