xorshift
xorshift copied to clipboard
Rust PRNGs: splitmix64, xoroshiro128+, xorshift128+, and xorshift1024*
If I define 2 Xorshifts, one with next_u64 and the other with jump, the result is not the same. am I doing something wrong? ``` fn main() { let seed...
This is a quick upgrade of xorshift to work with the new rand-0.5 API. I haven't updated the documentation and commented out the thread_local function. It's just enough to get...
Currently there's a chance a seed of all zeros could be produced by the other RNG. A zero seed will never produce anything but zero because of the way the...
xorshift1024.rs: line 99 ``` impl for Xorshift1024 { fn reseed(&mut self, seed: &'a [u64]) { if seed.len() < 16 { panic!("Xorshift1024 seed needs at least 16 u64s for seeding."); }...