CryptoRng
extends Rng
in package
Cryptographically-secure random number generator
Table of Contents
- $instance : mixed
- getInstance() : CryptoRng
- randomBytes() : Bytes
Properties
$instance
private
static mixed
$instance
= null
Methods
getInstance()
public
static getInstance() : CryptoRng
Return values
CryptoRng —randomBytes()
public
randomBytes(int $length) : Bytes
Parameters
- $length : int