mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 17:48:35 +00:00
Merge pull request #542 from bantu/fix-540
Add public keyword to Crypt\Random::string(). * bantu/fix-540: Add public keyword to Crypt\Random::string().
This commit is contained in:
commit
05ae7a1e66
@ -42,9 +42,8 @@ class Random
|
|||||||
*
|
*
|
||||||
* @param Integer $length
|
* @param Integer $length
|
||||||
* @return String
|
* @return String
|
||||||
* @access public
|
|
||||||
*/
|
*/
|
||||||
static function string($length)
|
public static function string($length)
|
||||||
{
|
{
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
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.
|
// method 1. prior to PHP 5.3 this would call rand() on windows hence the function_exists('class_alias') call.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user