Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerhawkvok committed Apr 25, 2014
1 parent bcef5b3 commit b1daabb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions php-stronghash.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ public function genUnique($len=128,$hash=true)

public function createSalt($length=32,$add_entropy=null,$do_secure = true)
{
if(@include_once("sources/support/random.php") !== false && $do_secure)
if(@include_once("sources/csprng/support/random.php") !== false && $do_secure)
{
// Do this cryptographically securely
try
{
$rng = new CSPRNG();
$rng = new CSPRNG;
$salt = $rng->GenerateString($length);
}
catch($e)
catch(Exception $e)
{
// run this again, not securely to escape the error
$this->createSalt($length,$add_entropy,false);
Expand Down

0 comments on commit b1daabb

Please sign in to comment.