A

AbstractGeneratorClass in namespace Riimu\Kit\SecureRandom\Generator
Abstract generator for handling byte generator errors.

B

ByteNumberGeneratorClass in namespace Riimu\Kit\SecureRandom\Generator
A random number generator that wraps the given byte generator for generating integers.

C

SecureRandom::choose() — Method in class SecureRandom
Returns one randomly selected value from the array.

G

GeneratorExceptionClass in namespace Riimu\Kit\SecureRandom
Exception thrown whenever secure random byte generation fails.
AbstractGenerator::getBytes() — Method in class AbstractGenerator
Returns securely generated random bytes.
ByteNumberGenerator::getBytes() — Method in class ByteNumberGenerator
Returns bytes read from the provided byte generator.
ByteNumberGenerator::getNumber() — Method in class ByteNumberGenerator
Returns a random integer between given minimum and maximum.
GeneratorClass in namespace Riimu\Kit\SecureRandom\Generator
Secure random byte generator interface.
Generator::getBytes() — Method in class Generator
Returns securely generated random bytes.
Internal::getNumber() — Method in class Internal
Returns a securely generated random number between minimum and maximum.
NumberGenerator::getNumber() — Method in class NumberGenerator
Returns a securely generated random number between minimum and maximum.
SecureRandom::getBytes() — Method in class SecureRandom
Returns a number of random bytes.
SecureRandom::getInteger() — Method in class SecureRandom
Returns a random integer between two positive integers (inclusive).
SecureRandom::getRandom() — Method in class SecureRandom
Returns a random float between 0 and 1 (excluding the number 1).
SecureRandom::getFloat() — Method in class SecureRandom
Returns a random float between 0 and 1 (inclusive).
SecureRandom::getArray() — Method in class SecureRandom
Returns a number of randomly selected elements from the array.
SecureRandom::getSequence() — Method in class SecureRandom
Returns a random sequence of values.
SecureRandom::getUuid() — Method in class SecureRandom
Returns a random UUID version 4 identifier.

I

ByteNumberGenerator::isSupported() — Method in class ByteNumberGenerator
Tells if the underlying byte generator is supported by the system.
Generator::isSupported() — Method in class Generator
Tells if the generator is supported by the operating system.
InternalClass in namespace Riimu\Kit\SecureRandom\Generator
Generates bytes and numbers using PHP's built in CSPRNG.
Internal::isSupported() — Method in class Internal
Tells if the generator is supported by the operating system.
Mcrypt::isSupported() — Method in class Mcrypt
Tells if the generator is supported by the operating system.
OpenSSL::isSupported() — Method in class OpenSSL
Tells if the generator is supported by the operating system.
RandomReader::isSupported() — Method in class RandomReader
Tells if the generator is supported by the operating system.

M

McryptClass in namespace Riimu\Kit\SecureRandom\Generator
Generates bytes using mcrypt extension.

N

NumberGeneratorClass in namespace Riimu\Kit\SecureRandom\Generator
Interface for generators that can also generate random numbers.

O

OpenSSLClass in namespace Riimu\Kit\SecureRandom\Generator
Generates bytes using OpenSSL extension.

R

AbstractGenerator::readBytes() — Method in class AbstractGenerator
Reads bytes from the randomness source.
Internal::readBytes() — Method in class Internal
Reads bytes from the randomness source.
Mcrypt::readBytes() — Method in class Mcrypt
Reads bytes from the randomness source.
OpenSSL::readBytes() — Method in class OpenSSL
Reads bytes from the randomness source.
RandomReaderClass in namespace Riimu\Kit\SecureRandom\Generator
Generates bytes reading directly from the random device.
RandomReader::readBytes() — Method in class RandomReader
Reads bytes from the randomness source.

S

SecureRandomClass in namespace Riimu\Kit\SecureRandom
Library for normalizing bytes returned by secure random byte generators.
SecureRandom::shuffle() — Method in class SecureRandom
Returns the array with the elements reordered in a random order.

_

ByteNumberGenerator::__construct() — Method in class ByteNumberGenerator
NumberByteGenerator constructor.
Mcrypt::__construct() — Method in class Mcrypt
Creates new instance of Mcrypt generator.
RandomReader::__construct() — Method in class RandomReader
Creates new instance of RandomReader.
RandomReader::__destruct() — Method in class RandomReader
Closes the file pointer.
SecureRandom::__construct() — Method in class SecureRandom
Creates a new instance of SecureRandom.