Re: [testsuite] use rand instead of random

2019-08-08 Thread Jeff Law
On 8/8/19 12:30 AM, Alexandre Oliva wrote: > 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. > > Tested on x86_64-linux-gnu, native and

Re: [testsuite] use rand instead of random

2019-08-08 Thread Segher Boessenkool
On Thu, Aug 08, 2019 at 03:30:55AM -0300, Alexandre Oliva wrote: > 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. > > Tested on

[testsuite] use rand instead of random

2019-08-08 Thread Alexandre Oliva
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. Tested on x86_64-linux-gnu, native and cross to ppc. Ok to install? for

Re: [RFA/testsuite] Use rand instead of random (again)

2011-12-03 Thread Mike Stump
On Nov 30, 2011, at 6:06 AM, Matthew Gretton-Dann wrote: The attached patch changes another use of random in the testsuite to rand. Please can someone review. Ok? is the canonical spelling for this... :-) Ok. (is the canonical answer.) 2011-11-30 Matthew Gretton-Dann

[RFA/testsuite] Use rand instead of random (again)

2011-11-30 Thread Matthew Gretton-Dann
All, The attached patch changes another use of random in the testsuite to rand. Tested on an arm-none-eabi target using QEmu. Please can someone review. Thanks, Matt gcc/testsuite/ChangeLog: 2011-11-30 Matthew Gretton-Dann matthew.gretton-d...@arm.com *