interface SecureRandomInterface

deprecated since version 2.8, to be removed in 3.0. Use the random_bytes function instead

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

at line 30
string nextBytes(int $nbBytes)

Generates the specified number of secure random bytes.

Parameters

int $nbBytes

Return Value

string