|
Boost Users : |
Subject: Re: [Boost-users] Seeding boost::mt19937 with bytes from CryptoGenRandom
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2010-02-11 07:08:38
Steven,
at first this solution seemed to me pretty cool. As far as I understand seed
will contain some value from stack. The only question is how probable is it,
that seed is always initialized with a different value?
Thanks,
Ovanes
On Thu, Feb 11, 2010 at 5:58 AM, Steven Watanabe <watanabesj_at_[hidden]>wrote:
> AMDG
>
>
> uint64_t seed;
> memcpy(&seed, &randomBytes[0], sizeof(seed));
>
>
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