
7 May
2007
7 May
'07
7:16 p.m.
"Peter Dimov" <pdimov@mmltd.net> wrote in news:007601c790d1$1a5214e0$6407a80a@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.