From: Brian Paul Date: Thu, 6 Dec 2012 18:54:36 +0000 (-0700) Subject: mesa: use rand() instead of random() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7745596ceb86a040cf4449a409e52a25036a626b;p=mesa.git mesa: use rand() instead of random() As Vinson Lee did in commit bb284669f85a32900bfec648d68ba4c4300772f4 in hash_table.c Signed-off-by: Brian Paul --- 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;