- sprintf(tmpbuf, "%08x%08x",lrand48(),lrand48());
+#ifdef HAVE_LRAND48
+ sprintf(tmpbuf, "/tmp/%08x%08x",lrand48(),lrand48());
+#else
+# ifdef HAVE_RAND
+ sprintf(tmpbuf, "/tmp/%08x%08x",rand(),rand());
+# else
+ sprintf(tmpbuf, "/tmp/%08x%08x",time(0),(unsigned int)tmpbuf);
+# endif
+#endif