From da87e82a0119901b235c4b447cec987ff4283054 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 7 Sep 2011 17:51:41 +0000 Subject: Use ISO rand() rather than BSD random() as it is more widely supported. svn path=/trunk/netsurf/; revision=12772 --- image/image_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image') diff --git a/image/image_cache.c b/image/image_cache.c index 5d45de480..a9f810426 100644 --- a/image/image_cache.c +++ b/image/image_cache.c @@ -251,7 +251,7 @@ static void image_cache__clean(struct image_cache_s *icache) /* only consider older entries, avoids active entries */ if ((icache->total_bitmap_size > (icache->params.limit - icache->params.hysteresis)) && - (random() > (RAND_MAX / 2))) { + (rand() > (RAND_MAX / 2))) { image_cache__free_bitmap(centry); } } -- cgit v1.2.3