mirror of
https://github.com/php/doc-en.git
synced 2026-04-28 01:33:12 +02:00
2ab45105b4
* 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()`