1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-14 14:12:29 +01:00
polr/app/Helpers/CryptoHelper.php
2015-11-06 21:44:50 -05:00

10 lines
243 B
PHP

<?php
namespace App\Helpers;
class CryptoHelper {
public static function generateRandomHex($rand_bytes_num) {
$rand_bytes = openssl_random_pseudo_bytes($rand_bytes_num, $crypt_secure);
return bin2hex($rand_bytes);
}
}