Re: [Boost-users] seed for pseudo-random generator

26 Aug
2012
26 Aug
'12
11:32 p.m.
For a little more entropy you can add the seconds from time to the process PID (UUID). That will give you a difference each run at the seconds numeric scale that would tend to repeat at the PID cycle rate. You could add in microseconds from http://www.boost.org/doc/libs/1_51_0/doc/html/date_time/posix_time.html (Linux gettimeofday) for additional entropy. On Linux with some additional work you can use /dev/random and /dev/urandom (better). Neil Nelson
4634
Age (days ago)
4634
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neil Nelson