]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use urandom to get random seed
authorAndi Kleen <ak@linux.intel.com>
Thu, 29 Sep 2011 13:15:13 +0000 (13:15 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Thu, 29 Sep 2011 13:15:13 +0000 (13:15 +0000)
commit35f2a89d8ec65fe11c37f1c681f465229bc852e3
tree036cb4380d2a3505ae1768b759e006e030596b0d
parentdde8b3609b40a5e9073a7638d492b8c29af2e24c
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

From-SVN: r179348
gcc/ChangeLog
gcc/toplev.c