From 7b7e7d8de5afea076e6875aad7426769b0cf5b83 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sun, 7 Dec 2014 00:31:54 +0100 Subject: [PATCH] Add public keyword to Crypt\Random::string(). --- phpseclib/Crypt/Random.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpseclib/Crypt/Random.php b/phpseclib/Crypt/Random.php index 0499ee2c..c9cd09e3 100644 --- a/phpseclib/Crypt/Random.php +++ b/phpseclib/Crypt/Random.php @@ -42,9 +42,8 @@ class Random * * @param Integer $length * @return String - * @access public */ - static function string($length) + public static function string($length) { if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { // method 1. prior to PHP 5.3 this would call rand() on windows hence the function_exists('class_alias') call.