|
Boost : |
Subject: Re: [boost] [UUID] seed_rng on Windows
From: Andy Tompkins (atompkins_at_[hidden])
Date: 2008-11-25 22:29:16
On Mon, 24 Nov 2008 18:42:14 +0200, "Kaj Björklund" <kbjorklu_at_[hidden]>
said:
> Hi all,
>
> It would be nice if seed_rng used CryptGenRandom (or something similar)
> on Windows instead of trying to open /dev/urandom.
This is a good idea. I will consider it.
> The patch for seed_rng.hpp at:
>
> http://www.dynaroad.com/win.diff
>
> tries to use CryptGenRandom when BOOST_WINDOWS and _WINDOWS_ (i.e.
> windows.h has been included before uuid.hpp) are defined.
>
> This seems to work on Windows XP SP2 and Visual Studio 2005.
>
> Cheers,
> -kaj
Thanks,
Andy Tompkins
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk