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

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 15:34:55 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 28474e1225866e6b73928f79722f14cc5d6b35c7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=28474e1225866e6b73928f79722f14cc5d6b35c7

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Oct 16 11:39:29 2009 +0100

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

Forgot these on previous commit.
(cherry picked from commit 166957abebea6aa203eba7e6348e89d53cf0e13e)

---

 progs/tests/prog_parameter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/tests/prog_parameter.c b/progs/tests/prog_parameter.c
index 6123ef7..28e3b53 100644
--- a/progs/tests/prog_parameter.c
+++ b/progs/tests/prog_parameter.c
@@ -153,7 +153,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();
    }
 
    printf("Testing glProgram%sParameters4fvEXT (count = %u)...\n", name, count);



More information about the mesa-commit mailing list