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:
parent
d60aecf872
commit
bc2454aa79
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user