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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user