openssl_random_pseudo_bytes

Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Generate a pseudo-random string of bytes
<?php openssl_random_pseudo_bytes(int $length, bool &$strong_result = null): string