symfony / 2.7.35 / symfony / component / security / core / util / securerandom.html /

SecureRandom

class SecureRandom implements SecureRandomInterface

A secure random number generator implementation.

Methods

string nextBytes(int $nbBytes)

Generates the specified number of secure random bytes.

Details

string nextBytes(int $nbBytes)

Generates the specified number of secure random bytes.

Parameters

int $nbBytes

Return Value

string

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Core/Util/SecureRandom.html