Skip to content

Commit

Permalink
Specify namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyer2k committed Oct 2, 2015
1 parent dcdc4b8 commit 487137b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Random.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ private static function fromMcrypt($bytes)
*/
public static function get($bytes)
{
if (function_exists('random_bytes')) {
return random_bytes($bytes);
if (\function_exists('random_bytes')) {
return \random_bytes($bytes);
} elseif (\function_exists('mcrypt_create_iv')) {
return self::fromMcrypt($bytes);
}
Expand Down

0 comments on commit 487137b

Please sign in to comment.