Boost logo

Boost Users :

Subject: Re: [Boost-users] [Random] Good Truly-Random Seed
From: Bill Buklis (boostuser_at_[hidden])
Date: 2010-04-21 13:46:32


> -----Original Message-----
> On 21 April 2010 13:47, Marius <letto2_at_[hidden]> wrote:
> >
> > May I suggest that boost should have a cross-platform function to so
> this.
> > time(NULL) is not random.
> >
>
> It does, in the form of random_device, though for some reason it seems
> the Windows implementation still hasn't happened.

For Windows, I think the GetTickCount Windows API function should be
sufficient for a random seed.

-- Bill --


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