\phpseclib\CryptRandom

Pure-PHP Random Number Generator

Summary

Methods
Properties
Constants
string()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

string()

string(integer  $length) : string

Generate a random string.

Although microoptimizations are generally discouraged as they impair readability this function is ripe with microoptimizations because this function has the potential of being called a huge number of times. eg. for RSA key generation.

Parameters

integer $length

Returns

string