RandomGeneratorFactory
in package
Table of Contents
Methods
- getHmacRandomGenerator() : DebugDecorator|RandomNumberGeneratorInterface
- getRandomGenerator() : DebugDecorator|RandomNumberGeneratorInterface
- wrapAdapter() : DebugDecorator|RandomNumberGeneratorInterface
Methods
getHmacRandomGenerator()
public
static getHmacRandomGenerator(PrivateKeyInterface $privateKey, GMP $messageHash, string $algorithm[, bool $debug = false ]) : DebugDecorator|RandomNumberGeneratorInterface
Parameters
- $privateKey : PrivateKeyInterface
- $messageHash : GMP
- $algorithm : string
- $debug : bool = false
Return values
DebugDecorator|RandomNumberGeneratorInterfacegetRandomGenerator()
public
static getRandomGenerator([bool $debug = false ]) : DebugDecorator|RandomNumberGeneratorInterface
Parameters
- $debug : bool = false
Return values
DebugDecorator|RandomNumberGeneratorInterfacewrapAdapter()
private
static wrapAdapter(RandomNumberGeneratorInterface $generator, string $name[, bool $debug = false ]) : DebugDecorator|RandomNumberGeneratorInterface
Parameters
- $generator : RandomNumberGeneratorInterface
- $name : string
- $debug : bool = false