From 40db22dd37392b83d6c7d67271cb7f544b06cb2e Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 12 Nov 2008 10:39:06 +0000 Subject: [PATCH] lrand48() -> rand() --- lib/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/png.c b/lib/png.c index 118fbd6..22eebe3 100644 --- a/lib/png.c +++ b/lib/png.c @@ -904,7 +904,7 @@ static COL* getOptimalPalette(COL*image, int size, int palettesize) } } if(!count) { - int random = lrand48()%num; + int random = rand()%num; centers[s].color = colors[random].color; centers[s].num = 0; change = 1; -- 1.7.10.4