From 7fe3742eaa6e7613f354d250be042a0cd80b8d4c Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 13 Jul 2008 18:49:27 +0000 Subject: [PATCH] use either lrand48() or rand() --- lib/gfxpoly.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 1.7.10.4