gmp_random_seed
PHP 7, PHP 8
gmp_random_seed - Sets the RNG seed
Manual
gmp_random_seed(
GMP|int|string$seed ): void
Parameters
- seed
-
The seed to be set for the gmp_random, gmp_random_bits, and gmp_random_range functions.
A GMP object, an int or a numeric string.
Return Values
Returns null on success or false on failure.
Exceptions and Errors
Issues an E_WARNING and returns false if seed is not valid.