There wasn't enough padding for tv_nsec and it was also assuming 16 bit
PIDs. Because of these there was a tiny possibility of two
guid_generate() calls returning the same GUID.
This changes the GUID format a bit, but it was used only by sdbox code,
which doesn't assume anything about the GUID format.
ts.tv_sec++;
ts.tv_nsec = 0;
}
- return t_strdup_printf("%04x%04lx%04x%s",
+ return t_strdup_printf("%08x%08lx.%x.%s",
(unsigned int)ts.tv_nsec,
(unsigned long)ts.tv_sec,
pid, my_hostname);