EntropyProvider

Class EntropyProvider

This class provides a general source for cryptography-safe random data.

package

Default

Methods

Provides $numBytes of random bytes, optionally limited to strong entropy sources

randomBytes(\IntType $numBytes, \BoolType $strongCryptoRequired) : boolean|string

Arguments

$numBytes

\IntType

$strongCryptoRequired

\BoolType

Response

boolean|string