class SecureRandom implements SecureRandomInterface
A secure random number generator implementation.
__construct(string $seedFile = null, LoggerInterface $logger = null) Constructor. | ||
string | nextBytes(integer $nbBytes) Generates the specified number of secure random bytes. |
Constructor.
Be aware that a guessable seed will severely compromise the PRNG algorithm that is employed.
Generates the specified number of secure random bytes.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Core/Util/SecureRandom.html