W3cubDocs

/Symfony 2.7

Symfony\Component\Security\Core\Util\SecureRandomInterface

interface SecureRandomInterface

Interface that needs to be implemented by all secure random number generators.

Methods

string nextBytes(int $nbBytes)

Generates the specified number of secure random bytes.

Details

public string nextBytes(int $nbBytes)

Generates the specified number of secure random bytes.

Parameters

int $nbBytes

Return Value

string

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