![]() |
Home | Libraries | People | FAQ | More |
boost::random::xoshiro128mm
// In header: <boost/random/xoshiro.hpp> class xoshiro128mm { public: // public member functions result_type next() noexcept; };
This is xoshiro128** 1.1, one of our 32-bit all-purpose, rock-solid generators. It has excellent speed, a state size (128 bits) that is large enough for mild parallelism, and it passes all tests we are aware of.
Note that version 1.0 had mistakenly state_[0] instead of state_[1] as state word passed to the scrambler.
For generating just single-precision (i.e., 32-bit) floating-point numbers, xoshiro128+ is even faster.
The state must be seeded so that it is not everywhere zero.