mirror of
https://github.com/cydrobolt/polr.git
synced 2024-09-19 23:21:47 +02:00
10 lines
213 B
PHP
10 lines
213 B
PHP
<?php
|
|
namespace App\Helpers;
|
|
|
|
class CryptoHelper {
|
|
public static function generateRandomHex($rand_bytes_num) {
|
|
$rand_bytes = random_bytes($rand_bytes_num);
|
|
return bin2hex($rand_bytes);
|
|
}
|
|
}
|