summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/set.c')
-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;