progs/tests: Use rand() instead of random().

More portable. Same implementation on Linux.
This commit is contained in:
José Fonseca
2009-10-16 11:39:29 +01:00
parent 60b6c74583
commit 699260b195

View File

@@ -116,7 +116,7 @@ static int set_parameter_batch( GLsizei count, GLfloat * param,
for ( i = 0 ; i < (4 * count) ; i++ ) { for ( i = 0 ; i < (4 * count) ; i++ ) {
param[i] = (GLfloat) random() / (GLfloat) random(); param[i] = (GLfloat) rand() / (GLfloat) rand();
} }
/* Try using the "classic" interface. /* Try using the "classic" interface.