IRNGProvider.php 393 B

123456789101112131415161718
  1. <?php
  2. namespace RobThree\Auth\Providers\Rng;
  3. interface IRNGProvider
  4. {
  5. /**
  6. * @param int $bytecount the number of bytes of randomness to return
  7. *
  8. * @return string the random bytes
  9. */
  10. public function getRandomBytes($bytecount);
  11. /**
  12. * @return bool whether this provider is cryptographically secure
  13. */
  14. public function isCryptographicallySecure();
  15. }