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:
Michal Čihař 2017-06-02 09:30:26 +02:00
parent a12a41e73a
commit d2240cd8f2

View File

@ -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';
}