Namespaces

Classes

Indicates that the used Random\Engine is broken, e.g. because it is severely biased.

The base class for Errors that occur during generation or use of randomness.

Provides a high-level API to the randomness provided by an Random\Engine.

Interfaces

A marker interface indicating that the Random\Engine returns cryptographically secure randomness.

A Random\Engine provides a low-level source of randomness by returning random bytes that are consumed by high-level APIs to perform their operations. The Random\Engine interface allows swapping out the algorithm used to generate randomness, because each algorithm makes different tradeoffs to fit specific use-cases. Some algorithms are very fast, but generate lower-quality randomness, whereas other algorithms are slower, but generate better randomness, up to cryptographically secure randomness as provided by the Random\Engine\Secure engine.

Exceptions

The base class for Exceptions that occur during generation or use of randomness.