From: José Fonseca Date: Fri, 16 Oct 2009 10:39:29 +0000 (+0100) Subject: progs/tests: Use rand() instead of random(). X-Git-Tag: mesa-7.8~2925 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=699260b19535abaa3af0a5d33eb039e3d6a30ce9;p=platform%2Fupstream%2Fmesa.git progs/tests: Use rand() instead of random(). More portable. Same implementation on Linux. --- diff --git a/progs/tests/prog_parameter.c b/progs/tests/prog_parameter.c index 6dd956c..6123ef7 100644 --- a/progs/tests/prog_parameter.c +++ b/progs/tests/prog_parameter.c @@ -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.