It looks like a stamp, but it's not: /* unique number: pseudo-random time() + counter */ g_snprintf (id, 30, "%ld%d", (glong) time (NULL), counter++); This to prevent the same name when multiple items are handled in 1 second. Nick