1
0
mirror of https://github.com/danog/tgseclib.git synced 2025-01-22 14:01:20 +01: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:
Andreas Fischer 2014-12-07 15:20:49 +01:00
commit 05ae7a1e66

View File

@ -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.