Skip to content

Commit

Permalink
Fix #5: Wrong default parameter $seek for file_get_contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiang committed Dec 3, 2019
1 parent db4dd49 commit 10c3f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Authentication/AbstractAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function generateCnonce()
{
foreach (array('/dev/urandom', '/dev/random') as $file) {
if (true === static::$useDevRandom && is_readable($file)) {
return base64_encode(file_get_contents($file, false, null, -1, 32));
return base64_encode(file_get_contents($file, false, null, 0, 32));
}
}

Expand Down

0 comments on commit 10c3f75

Please sign in to comment.