
4 Jun
2007
4 Jun
'07
9:56 p.m.
Andy wrote:
"Gottlob Frege" <gottlobfrege@gmail.com> wrote in news:97ffb310706011815p5704ca0ds9a6ceb09deeb21b6@mail.gmail.com:
Would it make any sense for uuid::create() to just use the OS's function, for OSes that can create uuids? (ie most OSes).
The OS API on windows creates time-based uuids (I don't know about other OSs, but expect the same). The uuid::create() function creates random-number-based uuids. I do not want to mix these.
On Windows XP and Vista, one can use RtlGenRandom. It produces a cryptographic-quality random number. http://msdn2.microsoft.com/en-us/library/aa387694.aspx http://blogs.msdn.com/michael_howard/archive/2005/01/14/353379.aspx