mesa: use rand() instead of random()

As Vinson Lee did in commit bb284669f8
in hash_table.c

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Brian Paul
2012-12-06 11:54:36 -07:00
parent 56e95d3ca2
commit 7745596ceb
+1 -1
View File
@@ -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;