Use urandom to get random seed
commitad7665738cceb89b25315d45f22612510fb6acd2
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Sep 2011 13:15:13 +0000 (29 13:15 +0000)
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Sep 2011 13:15:13 +0000 (29 13:15 +0000)
tree036cb4380d2a3505ae1768b759e006e030596b0d
parentbadc6cfaaad34c28dcf83d4773943e589bd47322
Use urandom to get random seed

When available use /dev/urandom to get the random seem. This will lower the probability
of collisions.

On other systems it will fallback to the old methods.

Passes bootstrap + testsuite on x86_64. Ok?

gcc/:

2011-09-26   Andi Kleen <ak@linux.intel.com>

* toplev.c (init_local_tick): Try reading random seed from /dev/urandom

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179348 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/toplev.c