|go ahead... be a heretic|
Re^6: Generate a unique IDby BrowserUk (Pope)
|on Nov 17, 2010 at 15:02 UTC||Need Help??|
The odds of even one name-collision are extremely small;
Do you consider a 1 in 30 chance as "extremely small"?
What I've implemented is this (the code is to be part of an XS module):
GetTickCount64() returns the uptime in milliseconds. By truncating it to 16-bits it proves to be a better rand() than MS' CRT rand() :).
The error codes are provisional!
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.