Mesa (master): mesa: use rand() instead of random()
Brian Paul
brianp at kemper.freedesktop.org
Thu Dec 6 18:55:45 UTC 2012
Module: Mesa
Branch: master
Commit: 7745596ceb86a040cf4449a409e52a25036a626b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7745596ceb86a040cf4449a409e52a25036a626b
Author: Brian Paul <brianp at vmware.com>
Date: Thu Dec 6 11:54:36 2012 -0700
mesa: use rand() instead of random()
As Vinson Lee did in commit bb284669f85a32900bfec648d68ba4c4300772f4
in hash_table.c
Signed-off-by: Brian Paul <brianp at vmware.com>
---
src/mesa/main/set.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/set.c b/src/mesa/main/set.c
index fe8f6d2..736841f 100644
--- a/src/mesa/main/set.c
+++ b/src/mesa/main/set.c
@@ -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;
More information about the mesa-commit
mailing list