On Fri, 2009-10-16 at 03:39 -0700, Jose Fonseca wrote:
> Module: Mesa
> Branch: master
> Commit: 699260b19535abaa3af0a5d33eb039e3d6a30ce9
> URL:    
> http://cgit.freedesktop.org/mesa/mesa/commit/?id=699260b19535abaa3af0a5d33eb039e3d6a30ce9
> 
> Author: José Fonseca <[email protected]>
> Date:   Fri Oct 16 11:39:29 2009 +0100
> 
> progs/tests: Use rand() instead of random().
> 
> More portable. Same implementation on Linux.

Where does random() not exist?  We (FreeBSD) have both, but rand()
returns an int, where random() returns a long.

robert.

> ---
> 
>  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 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.
> 
> _______________________________________________
> mesa-commit mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/mesa-commit
-- 
Robert Noland <[email protected]>
2Hip Networks

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to