In phpstorm php 7.4 I am using the following function below, it seems to function as it should but I get the following EA error in console on line 551
[EA] The IV generated can be false, please add necessary checks.
[EA] Use 2nd parameter for determining if the algorithm used was cryptographically strong.
function _token()
{
$random_token = base64_encode(openssl_random_pseudo_bytes(32));
return $_SESSION['token'] = $random_token;
}
This is line 551
$random_token = base64_encode(openssl_random_pseudo_bytes(32));
This is highlighted red
openssl_random_pseudo_bytes