From cebc2c226e17c986738018fcac1d6f4d7740191b Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 13 Dec 2001 08:21:07 +0000 Subject: [PATCH] use srand if srand48 not present. --- pdf2swf/pdf2swf.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index 7c5add0..79e6cb2 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -147,7 +147,13 @@ void args_callback_usage(char*name) int main(int argn, char *argv[]) { +#ifdef HAVE_SRAND48 srand48(time(0)); +#else +#ifdef HAVE_SRAND + srand(time(0)); +#endif +#endif processargs(argn, argv); initLog(0,-1,0,0,-1,loglevel); if(!outputname) -- 1.7.10.4