Files
Sentri/vendor/robthree/twofactorauth/lib/Providers/Rng/CSRNGProvider.php
2026-01-01 10:54:18 +01:00

17 lines
282 B
PHP

<?php
declare(strict_types=1);
namespace RobThree\Auth\Providers\Rng;
class CSRNGProvider implements IRNGProvider
{
/**
* {@inheritdoc}
*/
public function getRandomBytes(int $bytecount): string
{
return random_bytes($bytecount); // PHP7+
}
}