Subject: | counter for multible uuid within one tick is broken |
1)
static void get_current_time in does not initialize time_last. Therefore it will always default to set uuids_this_ticks to zero and return. (Even twice in the same tick)
2)get_system time returns tv_usec (ticks) * 10, increasing the time by 10 for each tick, but then it will add up to 1000 (uuid_this_tick) to id. This overlaps with the next tick.