From: kramm Date: Thu, 13 Dec 2001 08:21:07 +0000 (+0000) Subject: use srand if srand48 not present. X-Git-Tag: release-0-2-1~37 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=cebc2c226e17c986738018fcac1d6f4d7740191b use srand if srand48 not present. --- 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)