RandomBytesGenerator
class RandomBytesGenerator implements RandomGeneratorInterface (View source)
RandomBytesGenerator provides functionality to generate strings of random
binary data using random_bytes()
function in PHP 7+ or paragonie/random_compat
Methods
string
generate(integer $length)
Generates a string of random binary data of the specified length
Details
at line 32
string
generate(integer $length)
Generates a string of random binary data of the specified length