3 ms·
In PHP, at least, random_bytes() is faster than their "high quality" example.
by some_furry 3y ago
In PHP, at least, random_bytes() is faster than their "high quality" example.
- jagged-chisel 3y agoHow does the quality of random_bytes() compare?
- djbusby 3y agoThe manual says it uses high-quality sources https://www.php.net/manual/en/function.random-bytes.php https://www.php.net/manual/en/function.random-bytes.php Edit: the PHP docs seem to meet the requirements from the article but, the article has a different recommendation (odd?, Maybe I missed something)
- some_furry 3y agoIt uses the OS's cryptographic RNG.