1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 11:42:28 +01:00

[CryptoHelper.php] use random_bytes() function

This commit is contained in:
oittaa 2016-10-03 00:44:30 +03:00 committed by GitHub
parent d60aecf872
commit bc2454aa79

View File

@ -3,7 +3,7 @@ namespace App\Helpers;
class CryptoHelper {
public static function generateRandomHex($rand_bytes_num) {
$rand_bytes = openssl_random_pseudo_bytes($rand_bytes_num, $crypt_secure);
$rand_bytes = random_bytes($rand_bytes_num);
return bin2hex($rand_bytes);
}
}