diff --git a/phpseclib/Crypt/Random.php b/phpseclib/Crypt/Random.php index 9c6fbb92..0bee3c45 100644 --- a/phpseclib/Crypt/Random.php +++ b/phpseclib/Crypt/Random.php @@ -51,7 +51,7 @@ class Random * @param int $length * @return string */ - public static function string($length) + static function string($length) { if (version_compare(PHP_VERSION, '7.0.0', '>=')) { try { diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 93a06cd5..c0b9456e 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -330,7 +330,6 @@ class BigInteger self::$max10 = 10000000; self::$max10Len = 7; self::$maxDigit2 = pow(2, 52); // pow() prevents truncation - break; } }