lrand48() -> rand()
authorkramm <kramm>
Wed, 12 Nov 2008 10:39:06 +0000 (10:39 +0000)
committerkramm <kramm>
Wed, 12 Nov 2008 10:39:06 +0000 (10:39 +0000)
lib/png.c

index 118fbd6..22eebe3 100644 (file)
--- 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;