diff options
author | Andi Kleen <ak@linux.intel.com> | 2011-09-29 13:15:13 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2011-09-29 13:15:13 +0000 |
commit | 35f2a89d8ec65fe11c37f1c681f465229bc852e3 (patch) | |
tree | 036cb4380d2a3505ae1768b759e006e030596b0d /gcc/gcc.c | |
parent | dde8b3609b40a5e9073a7638d492b8c29af2e24c (diff) | |
download | gcc-35f2a89d8ec65fe11c37f1c681f465229bc852e3.zip gcc-35f2a89d8ec65fe11c37f1c681f465229bc852e3.tar.gz gcc-35f2a89d8ec65fe11c37f1c681f465229bc852e3.tar.bz2 |
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
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions