
26 Nov
2008
26 Nov
'08
3:29 a.m.
On Mon, 24 Nov 2008 18:42:14 +0200, "Kaj Björklund" <kbjorklu@iki.fi> 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