public function v4(bool $optimize = true): string
    {
        $uuid = UuidGen::uuid4()->toString();

        return $optimize ? str_replace('-', '', $uuid) : $uuid;
    }
public function v4(bool $optimize = true): string
    {
        $uuid = UuidGen::uuid4()->toString();

        return $optimize ? str_replace('-', '', $uuid) : $uuid;
    }
public function v4 ( bool $ optimize = true ) : string { $ uuid = UuidGen :: uuid4 ( ) -> toString ( ) ; return $ optimize ? str_replace ( '-' , '' , $ uuid ) : $ uuid ; }
UUID v4 generator.

@since 150424 Initial release.

@param bool $optimize Optimize?

@return string Version 4 UUID (32 bytes optimized).
Or 36 bytes unoptimized; i.e., w/ dashes.
UUID v4 generator .