kc3-lang/SDL/test/testqsort.c

Branch :


Log

Author Commit Date CI Message
9130f7c3 2021-01-02 10:25:38 Updated copyright for 2021
a8780c6a 2020-01-16 20:49:25 Updated copyright date for 2020
6f8910e3 2019-08-04 14:56:02 minor warning fixes.
5e13087b 2019-01-04 22:01:14 Updated copyright for 2019
e3cc5b2c 2018-01-03 10:03:25 Updated copyright for 2018
45b774e3 2017-01-01 18:33:28 Updated copyright for 2017
3ac201cf 2016-10-01 12:33:26 Fixed bug 3319 - Getting the POSIX out of testqsort.c Simon Hug There's a call to the POSIX function random in test/testqsort.c. Naturally, Windows doesn't do that. The attached patch changes the call to the SDLtest framework random functions and adds some seed control. Looking at SDLTest_RandomInitTime, I just want to say that 'srand((unsigned int)time(NULL)); a=rand(); srand(clock()); b=rand();' is an absolutely terrible way to initialize a seed on Windows because of its terrible LCG.
43594e3f 2016-03-10 21:00:13 Removed unnecessary include statement in test program.
deb2acbc 2016-03-10 01:50:43 A simple test program for SDL_qsort().