projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60b6c74
)
progs/tests: Use rand() instead of random().
author
José Fonseca
<jfonseca@vmware.com>
Fri, 16 Oct 2009 10:39:29 +0000
(11:39 +0100)
committer
José 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
patch
|
blob
|
history
diff --git
a/progs/tests/prog_parameter.c
b/progs/tests/prog_parameter.c
index 6dd956c4023570aa143b2c5e16de6be88ddf916c..6123ef7c1627a7ea9c4ba8abc0ce9cc8ba73673d 100644
(file)
--- 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) rand
om() / (GLfloat) random
();
+ param[i] = (GLfloat) rand
() / (GLfloat) rand
();
}
/* Try using the "classic" interface.