
21 Apr
2010
21 Apr
'10
5:47 p.m.
On Wednesday 21 April 2010 16:31:21 Mathias Gaunard wrote:
May I please know what do you guys use as you "good truly-random seed"?
I use /dev/random
May I suggest that boost should have a cross-platform function to so this. time(NULL) is not random. A good hack would be xoring many "random" numbers that you can get: -time(NULL) -pid -the values fo uninitialised variables whatever you can think of