use rand instead of random
authorAlexandre Oliva <oliva@adacore.com>
Fri, 9 Aug 2019 03:48:53 +0000 (03:48 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 9 Aug 2019 03:48:53 +0000 (03:48 +0000)
commit5dd6b2daae47fc9b6d8802391cde4c4819c82564
treed07c6f7bbe4e1ac892b30d94e8607c78b399b20c
parent4e9d3fdb5c545dad8b0fd8f548f0852d419ac108
use rand instead of random

rand is in ISO C, whereas random is only in POSIX, so it makes sense
to use the more portable function everywhere instead of falling back
from one to the other on systems that miss the less portable one.

for  gcc/testsuite/ChangeLog

* gcc.target/i386/sse2-mul-1.c: Use rand.  Drop fallback.
* gcc.target/i386/sse4_1-blendps-2.c: Likewise.
* gcc.target/i386/sse4_1-blendps.c: Likewise.
* gcc.target/i386/xop-vshift-1.c: Likewise.
* gcc.target/powerpc/direct-move.h: Likewise.

From-SVN: r274225
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/sse2-mul-1.c
gcc/testsuite/gcc.target/i386/sse4_1-blendps-2.c
gcc/testsuite/gcc.target/i386/sse4_1-blendps.c
gcc/testsuite/gcc.target/i386/xop-vshift-1.c
gcc/testsuite/gcc.target/powerpc/direct-move.h