Menu
Riverview Church

RANDOM_BYTES

Generates cryptographically secure pseudo-random bytes

SYNTAX

random_bytes ( int $length ) : string

PARAMETERS

length

The length of the random string that should be returned in bytes.

RETURN

Returns a string containing the requested number of cryptographically secure random bytes.

EXAMPLES

fe93e273

PHP