diff --git a/src/Collins/Sign/JWS/Crypto/CSPRNG.php b/src/Collins/Sign/JWS/Crypto/CSPRNG.php index 671acfd..d6e999a 100644 --- a/src/Collins/Sign/JWS/Crypto/CSPRNG.php +++ b/src/Collins/Sign/JWS/Crypto/CSPRNG.php @@ -160,7 +160,7 @@ public function GetInt($min, $max) $result = 0; for ($x = 0; $x < $numbytes; $x++) { - $result = ($result * 256) + ord($data{$x}); + $result = ($result * 256) + ord($data[$x]); } $result = $result & $mask; @@ -179,7 +179,7 @@ public function GenerateString($size = 32) return false; } - $result .= self::$alphanum{$data}; + $result .= self::$alphanum[$data]; } return $result; @@ -202,4 +202,4 @@ protected static function RNG_Translate() $args ); } -} \ No newline at end of file +}