I like adding the PID to the mix. And don't be put off by what it says in the manual about getmypid:
Note that when running as a server module,
separate invocations of the script are not guaranteed
to have distinct pids
True enough, but concurrent invocations of the same script (or any
other script calling uniqueid) are going to have unique pid's and
by the time any single script finishes, the microtime on which uniqueid
is based will be providing a different value.