Commit d5a1a8d8 authored by Vinson Lee's avatar Vinson Lee

fp-rfl: Use ANSI C random number functions.

Fixes compile errors with MSVC.
parent e8e97c00
......@@ -186,7 +186,7 @@ piglit_Display(void)
double
random_float(void)
{
return (double) random() / (double) random();
return (double) rand() / (double) rand();
}
......@@ -231,7 +231,7 @@ piglit_Init(int argc, char **argv)
* direction vector, generate an axis such that the reflection of the
* random vector across the axis is { 0, 1, 0 }.
*/
srandom(time(NULL));
srand(time(NULL));
for (i = 0; i < (ELEMENTS(direction) / 4); i++) {
const double d[3] = {
random_float(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment