Re: [AD] rand() vs random() |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Angelo Mottola wrote:
Can we use random() instead of rand() in the test program? Under OSX using rand() gives really poor randomness in tests, and it's not nice to see. random() on the other hand performs much better. Since it should be supported by all the platforms Allegro runs on (can you confirm this? It's an stdlib function), can we replace rand() with it at least in test.c?
It's not ansi, and afaics it's not in mingw. I've noticed improved results before with ((rand()<<16)+rand()), can you try this?
Sven
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |