Hacker News new | ask | show | jobs
by some_furry 1120 days ago
In PHP, at least, random_bytes() is faster than their "high quality" example.
1 comments

How does the quality of random_bytes() compare?
The manual says it uses high-quality sources

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)

It uses the OS's cryptographic RNG.