aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-11-12 22:15:42 -0800
committerVinson Lee <[email protected]>2012-11-12 22:15:42 -0800
commitbb284669f85a32900bfec648d68ba4c4300772f4 (patch)
treef4e12a998097520ca185095cd104b2060e47368c /src
parent9b67460223b2a9b5c223bbeb13def910d6368a92 (diff)
mesa: Replace random with standard C rand.
BSD random is not available on some compilers. Signed-off-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/hash_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/hash_table.c b/src/mesa/main/hash_table.c
index 1e4561e6caf..2bd1929aa9d 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;