mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
progs/tests: Use rand() instead of random().
More portable. Same implementation on Linux.
(cherry picked from commit 699260b195)
This commit is contained in:
parent
a38776419b
commit
bb6e3af939
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue