public static function create(): GUID
    {
        $guid = \random_bytes(16);

        // Reset version byte to version 4 (0100)
        $guid[6] = chr(ord($guid[6]) & 0x0f | 0x40);

        $guid[8] = chr(ord($guid[8]) & 0x3f | 0x80);

        return new static($guid);
    }
public static function create(): GUID
    {
        $guid = \random_bytes(16);

        // Reset version byte to version 4 (0100)
        $guid[6] = chr(ord($guid[6]) & 0x0f | 0x40);

        $guid[8] = chr(ord($guid[8]) & 0x3f | 0x80);

        return new static($guid);
    }
public static function create ( ) : GUID { $ guid = \ random_bytes ( 16 ) ; // Reset version byte to version 4 (0100) $ guid [ 6 ] = chr ( ord ( $ guid [ 6 ] ) & 0x0f | 0x40 ) ; $ guid [ 8 ] = chr ( ord ( $ guid [ 8 ] ) & 0x3f | 0x80 ) ; return new static ( $ guid ) ; }
Creates a new V4 UUID

@return GUID
Creates a new V4 UUID