Commit Graph

3 Commits

Author SHA1 Message Date
Sam Lantinga 3ac201cf7f 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.
2016-10-01 12:33:26 -07:00
Philipp Wiesemann 43594e3f3d Removed unnecessary include statement in test program. 2016-03-10 21:00:13 +01:00
Ryan C. Gordon deb2acbcd9 A simple test program for SDL_qsort(). 2016-03-10 01:50:43 -05:00