progs/tests: Use rand() instead of random().
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 16 Oct 2009 10:39:29 +0000 (11:39 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 16 Oct 2009 10:39:29 +0000 (11:39 +0100)
More portable. Same implementation on Linux.

progs/tests/prog_parameter.c

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