Skip to content

Commit

Permalink
Update phpass to 0.4
Browse files Browse the repository at this point in the history
Note: this does not fix the php4 constructor
  • Loading branch information
photodude committed Feb 2, 2017
1 parent 28a8ce6 commit bf73ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/phpass/PasswordHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Portable PHP password hashing framework.
#
# Version 0.3 / genuine.
# Version 0.4 / genuine.
#
# Written by Solar Designer <solar at openwall.com> in 2004-2006 and placed in
# the public domain. Revised in subsequent years, still public domain.
Expand Down Expand Up @@ -48,7 +48,7 @@ function PasswordHash($iteration_count_log2, $portable_hashes)
function get_random_bytes($count)
{
$output = '';
if (is_readable('/dev/urandom') &&
if (@is_readable('/dev/urandom') &&
($fh = @fopen('/dev/urandom', 'rb'))) {
$output = fread($fh, $count);
fclose($fh);
Expand Down

0 comments on commit bf73ef5

Please sign in to comment.