SecureRandom

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