Random
Crypto safe pseudo-random value generation
Table of Contents
Methods
- generateRandomBytes() : string
- Generates cryptographic secure pseudo-random bytes
- generateRandomHexString() : string
- Generates cryptographic secure pseudo-random hex string
- generateRandomInteger() : int
- Generates cryptographic secure pseudo-random integers
Methods
generateRandomBytes()
Generates cryptographic secure pseudo-random bytes
public
generateRandomBytes(int $length) : string
Parameters
- $length : int
Return values
stringgenerateRandomHexString()
Generates cryptographic secure pseudo-random hex string
public
generateRandomHexString(int $length) : string
Parameters
- $length : int
Return values
stringgenerateRandomInteger()
Generates cryptographic secure pseudo-random integers
public
generateRandomInteger(int $min, int $max) : int
Parameters
- $min : int
- $max : int