diff --git a/src/Random.php b/src/Random.php index 84c6437b..439c69d8 100644 --- a/src/Random.php +++ b/src/Random.php @@ -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); }