What is a way to get a value that will be unique at start
I'm looking for a way to generate unique IDs, and am going with the approach in http://antirez.com/news/99. Basically, I want to get a value on startup that is virtually guaranteed to be unique on startups, then append a counter to it to get unique IDs. For example, if on startup I generate the string "abcd", the generated IDs for that session would be "abcd-1", "abcd-2", and so on. I thought about using os.time, but that is implementation-dependent and might be broken and return the same thing each time, for example. The article I linked samples /dev/urandom, but that is both not portable and requires mod trust (for filesystem access). The method needs to be platform-independent, and ideally does not require mod trust.