class MtRandGenerator implements RandomGeneratorInterface (View source)

MtRandRandomGenerator provides functionality to generate strings of random binary data using the mt_rand() PHP function

Methods

string
generate(integer $length)

Generates a string of random binary data of the specified length

Details

string generate(integer $length)

Generates a string of random binary data of the specified length

Parameters

integer $length The number of bytes of random binary data to generate

Return Value

string A binary string