RandomLibAdapter
class RandomLibAdapter implements RandomGeneratorInterface (View source)
RandomLibAdapter provides functionality to generate strings of random binary data using the ircmaxell/random-lib library
Methods
__construct(Generator $generator = null)
Constructs a RandomLibAdapter
using a RandomLib\Generator
string
generate(integer $length)
Generates a string of random binary data of the specified length
Details
at line 41
__construct(Generator $generator = null)
Constructs a RandomLibAdapter
using a RandomLib\Generator
By default, if no Generator
is passed in, this creates a medium-strength
generator to use when generating random binary data.
at line 58
string
generate(integer $length)
Generates a string of random binary data of the specified length