Class P2PEG
Methods summary
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
(int)random
|
|
public
(int)random
|
|
public
(int)random
|
|
public
(int)random
|
|
public
(int)random
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
expensiveEntropy( $autoseed = true )
Since this class is designed to run as quick as posible, this method is not called by default. * You should call this method only in places where speed is not critical (ex. on cron, in a background request) |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
frand_put_content( $filename, $length = NULL, $append = false )
Write $length bytes of random data to $filename file. |
public
true
|
|
public
|
|
public
|
|
public
|
Properties summary
public static
string
|
$version
|
#
'0.3.5'
|
public static
|
$start_ts
|
|
protected static
|
$instance
|
|
public
|
$state_file
|
|
public
boolean
|
$debug
|
#
false
|
public
array
|
$hash
|
#
array('sha512', 'sha256', 'sha128', 'sha1', 'md5')
|
public
boolean
|
$seedSys
|
#
true
|
public
integer
|
$rs00
|
#
0
|
public
integer
|
$rs01
|
#
0
|
public
integer
|
$rs10
|
#
0
|
public
integer
|
$rs11
|
#
0
|
protected
|
$_state_mtime
|
|
protected
|
$_clientEntropy
|
|
protected
|
$_serverEntropy
|
|
protected
|
$_serverEEntropy
|
|
protected
|
$_filesystemEntropy
|
|
protected static
|
$int_len
|