git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7e5869
)
lrand48() -> rand()
author
kramm
<kramm>
Wed, 12 Nov 2008 10:39:06 +0000
(10:39 +0000)
committer
kramm
<kramm>
Wed, 12 Nov 2008 10:39:06 +0000
(10:39 +0000)
lib/png.c
patch
|
blob
|
history
diff --git
a/lib/png.c
b/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;