Skip to content

Commit

Permalink
Proper namesping of root functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyer2k authored Jul 14, 2018
1 parent 2155533 commit c906cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static function costHash(int $cost, string $salt, string $password): str
public static function ihmac(string $data, string $key, int $iter, string $algo = 'sha256'): string
{
// Can't perform negative iterations
$iter = abs($iter);
$iter = \abs($iter);

// Perform iterative hmac calls
// Make sure $iter value of 0 is handled
Expand Down Expand Up @@ -177,7 +177,7 @@ public static function verify(string $input, string $hash, string $password): bo
*/
private static function dec2bin(int $dec): string
{
return hex2bin(\str_pad(\dechex($dec), 8, '0', STR_PAD_LEFT));
return \hex2bin(\str_pad(\dechex($dec), 8, '0', STR_PAD_LEFT));
}

/**
Expand Down

0 comments on commit c906cf0

Please sign in to comment.