public static random ( integer $bytes, array $options = [] ) : string | ||
$bytes | integer | The number of random bytes to generate. |
$options | array | The options used when generating random bytes: - `'encode'` _integer_: If specified, and set to `String::ENCODE_BASE_64`, the resulting value will be base64-encoded, per the notes above. |
return | string | Returns a string of random bytes. |