mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-07-31 20:49:33 +02:00
14 lines
284 B
PHP
14 lines
284 B
PHP
<?php
|
|
|
|
namespace RobThree\Auth\Providers\Rng;
|
|
|
|
class CSRNGProvider implements IRNGProvider
|
|
{
|
|
public function getRandomBytes($bytecount) {
|
|
return random_bytes($bytecount); // PHP7+
|
|
}
|
|
|
|
public function isCryptographicallySecure() {
|
|
return true;
|
|
}
|
|
} |