From: Vinson Lee Date: Tue, 13 Nov 2012 06:15:42 +0000 (-0800) Subject: mesa: Replace random with standard C rand. X-Git-Tag: mesa-9.1-rc1~1299 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb284669f85a32900bfec648d68ba4c4300772f4;p=platform%2Fupstream%2Fmesa.git mesa: Replace random with standard C rand. BSD random is not available on some compilers. Signed-off-by: Vinson Lee --- diff --git a/src/mesa/main/hash_table.c b/src/mesa/main/hash_table.c index 1e4561e..2bd1929 100644 --- a/src/mesa/main/hash_table.c +++ b/src/mesa/main/hash_table.c @@ -363,7 +363,7 @@ _mesa_hash_table_random_entry(struct hash_table *ht, bool (*predicate)(struct hash_entry *entry)) { struct hash_entry *entry; - uint32_t i = random() % ht->size; + uint32_t i = rand() % ht->size; if (ht->entries == 0) return NULL;