summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-12-06 11:54:36 -0700
committerBrian Paul <[email protected]>2012-12-06 11:55:02 -0700
commit7745596ceb86a040cf4449a409e52a25036a626b (patch)
tree7b93dcb24ce55c39d15ac70afc93635725d68c89 /src/mesa/main
parent56e95d3ca231110188e5b910f4e17104f3176d52 (diff)
mesa: use rand() instead of random()
As Vinson Lee did in commit bb284669f85a32900bfec648d68ba4c4300772f4 in hash_table.c Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/set.c b/src/mesa/main/set.c
index fe8f6d221b0..736841fc9c0 100644
--- 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 = random() % ht->size;
+ uint32_t i = rand() % ht->size;
if (ht->entries == 0)
return NULL;