Documentation

RandomGeneratorInterface

A random generator generates strings of random binary data

Table of Contents

generate()  : string
Generates a string of randomized binary data

Methods

generate()

Generates a string of randomized binary data

public generate(int $length) : string
Parameters
$length : int

The number of bytes of random binary data to generate

Return values
string

A binary string

Search results