go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> I'm thinking to combine: process id with current date-time to the highest resoltion available. Is that enough?
If you're not absolutely sure if it's enough, then you should consider some dynamic error detecting mechanism. For instance add a "sufficiently" long random number after a delimiter like underscore. If ever the "head" part in front of the delimiter should be identical while the random "tail" part is different you can raise an error message. The length of the random part will decide about the probability to detect such a problem. Of course I second Corions suggestion to add a host part in the ID-head.
Cheers Rolf In reply to Re: Generate a unique ID
by LanX
|
|