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:
c2e9276
)
use either lrand48() or rand()
author
kramm
<kramm>
Sun, 13 Jul 2008 18:49:27 +0000
(18:49 +0000)
committer
kramm
<kramm>
Sun, 13 Jul 2008 18:49:27 +0000
(18:49 +0000)
lib/gfxpoly.c
patch
|
blob
|
history
diff --git
a/lib/gfxpoly.c
b/lib/gfxpoly.c
index
af847f8
..
65a65b7
100644
(file)
--- a/
lib/gfxpoly.c
+++ b/
lib/gfxpoly.c
@@
-529,7
+529,13
@@
static double find_shear_value(ArtSVP*svp)
}
if(!fail)
break;
- v = lrand48() / 2000000000.0;
+#ifdef HAVE_LRAND48
+ v = lrand48() / 2000000000.0;;
+#elif HAVE_RAND
+ v = rand() / 2000000000.0;
+#else
+#error "no lrand48()/rand() implementation found"
+#endif
tries++;
}
return v;