TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Random Class Reference

Public Member Functions

 generateRandomBytes (int $length)
 
 generateRandomInteger (int $min, int $max)
 
 generateRandomHexString (int $length)
 

Detailed Description

Crypto safe pseudo-random value generation

Definition at line 21 of file Random.php.

Member Function Documentation

generateRandomBytes ( int  $length)

Generates cryptographic secure pseudo-random bytes

Parameters
int$length
Returns
string

Definition at line 29 of file Random.php.

Referenced by Random\generateRandomHexString().

generateRandomHexString ( int  $length)

Generates cryptographic secure pseudo-random hex string

Parameters
int$length
Returns
string

Definition at line 52 of file Random.php.

References Random\generateRandomBytes().

generateRandomInteger ( int  $min,
int  $max 
)

Generates cryptographic secure pseudo-random integers

Parameters
int$min
int$max
Returns
int

Definition at line 41 of file Random.php.