From 7745596ceb86a040cf4449a409e52a25036a626b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 6 Dec 2012 11:54:36 -0700 Subject: [PATCH] mesa: use rand() instead of random() As Vinson Lee did in commit bb284669f85a32900bfec648d68ba4c4300772f4 in hash_table.c Signed-off-by: Brian Paul --- src/mesa/main/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2