Documentation

SecureRandom
in package

Secure random token generation.

Tags
author

Derkades

version
2.0.0-pr13
license

MIT

Table of Contents

Methods

alphanumeric()  : string
Generate a unique alphanumeric string.

Methods

alphanumeric()

Generate a unique alphanumeric string.

public static alphanumeric([int $num_bytes = 32 ]) : string
Parameters
$num_bytes : int = 32
Tags
throws
Exception

If an appropriate source of randomness cannot be found.

Return values
string

Generated string.


        
On this page

Search results