Documentation

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

randomBytes()

public randomBytes(int $length) : Bytes
Parameters
$length : int
Return values
Bytes

Search results