From: kramm Date: Sun, 13 Jul 2008 18:49:27 +0000 (+0000) Subject: use either lrand48() or rand() X-Git-Tag: buttons-working~80 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=7fe3742eaa6e7613f354d250be042a0cd80b8d4c;p=swftools.git use either lrand48() or rand() --- diff --git a/lib/gfxpoly.c b/lib/gfxpoly.c index af847f8..65a65b7 100644 --- 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;