From 0bf54ddfa2a0efcf6142ad1292abbfa26fe0bee3 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 2 Oct 2006 03:42:10 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@82 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libpm.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/libpm.c') diff --git a/lib/libpm.c b/lib/libpm.c index df59e6c4..f36b7a50 100644 --- a/lib/libpm.c +++ b/lib/libpm.c @@ -35,7 +35,9 @@ #define _LARGE_FILE_API /* This makes the the x64() functions available on AIX */ +#include #include +#include #include #include #include @@ -43,6 +45,7 @@ #ifdef __DJGPP__ #include #endif +#include #include "pm_c_util.h" #include "version.h" @@ -782,6 +785,15 @@ pm_arg0toprogname(const char arg0[]) { +unsigned int +pm_randseed(void) { + + return time(NULL) ^ getpid(); + +} + + + /* File open/close that handles "-" as stdin/stdout and checks errors. */ FILE* @@ -986,7 +998,7 @@ pm_make_tmpfile(FILE ** const filePP, const char * dirseparator; const char * error; - fnamelen = strlen (pm_progname) + 10; /* "/" + "_XXXXXX\0" */ + fnamelen = strlen(pm_progname) + 10; /* "/" + "_XXXXXX\0" */ tmpdir = tmpDir(); -- cgit 1.4.1