Skip to content

Commit

Permalink
Merge pull request #1 from AxaliaN/php7.4-compat
Browse files Browse the repository at this point in the history
Changes deprecated curly braces syntax
  • Loading branch information
AxaliaN authored Jul 13, 2022
2 parents 7a4cb45 + 15835a9 commit 6be1c66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Collins/Sign/JWS/Crypto/CSPRNG.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -179,7 +179,7 @@ public function GenerateString($size = 32)
return false;
}

$result .= self::$alphanum{$data};
$result .= self::$alphanum[$data];
}

return $result;
Expand All @@ -202,4 +202,4 @@ protected static function RNG_Translate()
$args
);
}
}
}

0 comments on commit 6be1c66

Please sign in to comment.