Fix phpseclib method invocation
Apparently this has been broken for quite some time on PHP 5 and nobody noticed. Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
a12a41e73a
commit
d2240cd8f2
@ -4883,7 +4883,7 @@ class Util
|
||||
{
|
||||
$result = '';
|
||||
if (class_exists('phpseclib\\Crypt\\Random')) {
|
||||
$random_func = 'phpseclib\\Crypt\\Random::string';
|
||||
$random_func = array('phpseclib\\Crypt\\Random', 'string');
|
||||
} else {
|
||||
$random_func = 'openssl_random_pseudo_bytes';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user