private static function create_new_id(string $prefix = "Wedeto")
    {
        if (version_compare(PHP_VERSION, '7.1.0') > 0)
            return session_create_id($prefix);
        return $prefix . bin2hex(random_bytes(16));
    }
private static function create_new_id(string $prefix = "Wedeto")
    {
        if (version_compare(PHP_VERSION, '7.1.0') > 0)
            return session_create_id($prefix);
        return $prefix . bin2hex(random_bytes(16));
    }
private static function create_new_id ( string $ prefix = "Wedeto" ) { if ( version_compare ( PHP_VERSION , '7.1.0' ) > 0 ) return session_create_id ( $ prefix ) ; return $ prefix . bin2hex ( random_bytes ( 16 ) ) ; }
Helper function. PHP 7.1 introduces session_create_id function. This
is used in PHP 7.1 but a fallback using random_bytes is used on
PHP 7.0.

@param string $prefix A prefix to prepend to the session ID
@return string A hexadecimal session ID
Helper function . PHP 7 . 1 introduces session_create_id function . This is used in PHP 7 . 1 but a fallback using random_bytes is used on PHP 7 . 0 .