PHP Class phpseclib\Crypt\Random

Author: Jim Wigginton ([email protected])
Afficher le fichier Open project: phpseclib/phpseclib Class Usage Examples

Méthodes publiques

Méthode Description
safe_serialize ( mixed &$arr ) Safely serialize variables
string ( integer $length ) : string Generate a random string.

Method Details

safe_serialize() static public méthode

If a class has a private __sleep() it'll emit a warning
static public safe_serialize ( mixed &$arr )
$arr mixed

string() static public méthode

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.
static public string ( integer $length ) : string
$length integer
Résultat string