|
Boost Users : |
Subject: Re: [Boost-users] [Random] Good Truly-Random Seed
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2010-04-21 13:53:02
On 21 April 2010 13:46, Bill Buklis <boostuser_at_[hidden]> wrote:
>
> For Windows, I think the GetTickCount Windows API function should be
> sufficient for a random seed.
>
I suspect that may lead to cold boot problems.
Besides, it looks like the answer may be as simple as calling
ADVAPI32!RtlGenRandom, rand_s, or similar
<http://en.wikipedia.org/wiki/CryptGenRandom>.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net