Boost logo

Boost :

From: Andy (atompkins_at_[hidden])
Date: 2007-05-07 15:16:26


"Peter Dimov" <pdimov_at_[hidden]> wrote in
news:007601c790d1$1a5214e0$6407a80a_at_pdimov2:

> Peter Dimov wrote:
>
>> For the default seed, you might want to look into combining several
>> sources of entropy (unpredictable values) such as
>>
>> - time(0)
>> - clock()
>> - the values of an unsigned char[] array that is allocated on the
>> stack and not initialized
>> - the addresses of some variables or functions
>> - the address of a newly allocated object
>> - anything else that you can come up with
>
> Here's one implementation of this. Feel free to use it:
>
< snip >

Thank you.

Andy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk