Subject: [boost] [UUID] seed_rng on Windows
From: Kaj Björklund (kbjorklu_at_[hidden])
Date: 2008-11-24 11:42:14
It would be nice if seed_rng used CryptGenRandom (or something similar)
on Windows instead of trying to open /dev/urandom.
The patch for seed_rng.hpp at:
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk