Xoshiro256StarStar
final class Xoshiro256StarStar implements Engine (View source)
Implements the xoshiro256** algorithm.
Methods
Constructs a new xoshiro256** engine
Generate 64 bits of randomness
Efficiently move the engine ahead by 2^128 steps
Efficiently move the engine ahead by 2^192 steps
Serializes the Xoshiro256StarStar object
Deserializes the data parameter into a Xoshiro256StarStar object
Returns the internal state of the engine
Details
__construct(string|int|null $seed = null)
Constructs a new xoshiro256** engine
string
generate()
Generate 64 bits of randomness
void
jump()
Efficiently move the engine ahead by 2^128 steps
Moves the algorithm’s state ahead by 2128 steps, as if Random\Engine\Xoshiro256StarStar::generate was called 2128 times.
void
jumpLong()
Efficiently move the engine ahead by 2^192 steps
Moves the algorithm’s state ahead by 2192 steps, as if Random\Engine\Xoshiro256StarStar::generate was called 2192 times.
array
__serialize()
Serializes the Xoshiro256StarStar object
void
__unserialize(array $data)
Deserializes the data parameter into a Xoshiro256StarStar object
array
__debugInfo()
Returns the internal state of the engine