protected static function php7_random_bytes_exists() { if (!isset(self::$php7_random_bytes_exists)) { self::$php7_random_bytes_exists = version_compare(PHP_VERSION, '7.0.0', '>=') && function_exists('random_bytes'); } return self::$php7_random_bytes_exists; }