(PHP 8 >= 8.2.0)
Random\Engine\Secure::generate — Generate cryptographically secure randomness
Returns cryptographically secure randomness.
The sources of randomness used for this function are as follows:
This function has no parameters.
A string containing PHP_INT_SIZE
cryptographically secure random bytes.
Example #1 Random\Engine\Secure::generate() example
<?php
/* ... */
?>
The above example will output something similar to:
...