Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Random

Fonctions membres publiques statiques

static string ($length)
 

Fonctions membres privées statiques

static safe_serialize (&$arr)
 

Documentation des fonctions membres

◆ safe_serialize()

static safe_serialize ( $arr)
staticprivate

Safely serialize variables

If a class has a private __sleep() it'll emit a warning

Renvoie
mixed
Paramètres
mixed$arr

Références $key.

◆ string()

static string (   $length)
static

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.

Paramètres
int$length
Exceptions

Références $i, $key, $r, et $result.

Référencé par Ed448\createRandomMultiplier(), Ed25519\createRandomMultiplier(), PrivateKey\emsa_pss_encode(), SSH2\key_exchange(), PublicKey\rsaes_oaep_encrypt(), PublicKey\rsaes_pkcs1_v1_5_encrypt(), SSH2\send_binary_packet(), X509\sign(), PKCS1\wrapPrivateKey(), OpenSSH\wrapPrivateKey(), PuTTY\wrapPrivateKey(), et PKCS8\wrapPrivateKey().


La documentation de cette classe a été générée à partir du fichier suivant :