mesa: use rand() instead of random()
authorBrian Paul <brianp@vmware.com>
Thu, 6 Dec 2012 18:54:36 +0000 (11:54 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 6 Dec 2012 18:55:02 +0000 (11:55 -0700)
As Vinson Lee did in commit bb284669f85a32900bfec648d68ba4c4300772f4
in hash_table.c

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/set.c

index fe8f6d221b0fab074bba334c4f27b80cbedafc00..736841fc9c0f52e63f08101d3cab34b19dda54e0 100644 (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;