Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-06-04 17:56:24


Andy wrote:
> "Gottlob Frege" <gottlobfrege_at_[hidden]> wrote in
> news:97ffb310706011815p5704ca0ds9a6ceb09deeb21b6_at_[hidden]:
>
>> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk