http://www.perlmonks.org?node_id=871418

BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:

I'm looking to generate a unique ID for a given run of a program, that will distinguish it from any other--previous, subsequent or concurrent--run of that program on that same system.

I'm seeking to avoid semi-random algorithms like GUID/UUID and similar.

I'm not concerned with trying to detect deliberate attempts to fake out the mechanism.

I'm thinking to combine: process id with current date-time to the highest resoltion available. Is that enough?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.