Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
phpseclib
Crypt
Random
PHP Class phpseclib\Crypt\Random
Author:
Jim Wigginton (
[email protected]
)
Show file
Open project: phpseclib/phpseclib
Class Usage Examples
Public Methods
Method
Description
safe_serialize
(
mixed
&
$arr
)
Safely serialize variables
string
(
integer
$length
) :
string
Generate a random string.
Method Details
safe_serialize()
static
public
method
If a class has a private __sleep() it'll emit a warning
static
public
safe_serialize
(
mixed
&
$arr
)
$arr
mixed
string()
static
public
method
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
return
string