projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e95d3
)
mesa: use rand() instead of random()
author
Brian Paul
<brianp@vmware.com>
Thu, 6 Dec 2012 18:54:36 +0000
(11:54 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 6 Dec 2012 18:55:02 +0000
(11:55 -0700)
As Vinson Lee did in commit
bb284669f85a32900bfec648d68ba4c4300772f4
in hash_table.c
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/set.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/set.c
b/src/mesa/main/set.c
index fe8f6d221b0fab074bba334c4f27b80cbedafc00..736841fc9c0f52e63f08101d3cab34b19dda54e0 100644
(file)
--- a/
src/mesa/main/set.c
+++ b/
src/mesa/main/set.c
@@
-324,7
+324,7
@@
_mesa_set_random_entry(struct set *ht,
int (*predicate)(struct set_entry *entry))
{
struct set_entry *entry;
- uint32_t i = rand
om
() % ht->size;
+ uint32_t i = rand() % ht->size;
if (ht->entries == 0)
return NULL;