mirror of
https://github.com/php/doc-en.git
synced 2026-03-27 09:12:15 +01:00
* random: Remove openssl_random_pseudo_bytes() from caution.cryptographically-insecure The `random_bytes()` and `random_int()` alternatives are available since since PHP 7.0, are available by default and directly map to the OS' CSPRNG and thus are likely more secure. Thus this commit stops mentioning `openssl_random_pseudo_bytes()` as a possible option any more to keep things simple for the reader. * random: Remove `openssl_random_pseudo_bytes()` from “See Also” sections for ext/random The reasoning as with the previous commit applies. * hash: Replace `openssl_random_pseudo_bytes()` by `random_bytes()` * session: Replace `openssl_random_pseudo_bytes()` by `random_bytes()`