-const char parsers_rcs[] = "$Id: parsers.c,v 1.58 2006/07/18 14:48:47 david__schmidt Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.59 2006/08/03 02:46:41 david__schmidt Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
*
* Revisions :
* $Log: parsers.c,v $
+ * Revision 1.59 2006/08/03 02:46:41 david__schmidt
+ * Incorporate Fabian Keil's patch work:\rhttp://www.fabiankeil.de/sourcecode/privoxy/
+ *
* Revision 1.58 2006/07/18 14:48:47 david__schmidt
* Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
* with what was really the latest development (the v_3_0_branch branch)
rtime = difftime(now, last_modified);
if (rtime)
{
+#if !defined(_WIN32) && !defined(__OS2__)
rtime = random() % rtime + 1;
+#else
+ rtime = rand() % rtime + 1;
+#endif /* (ifndef _WIN32 || __OS2__) */
last_modified += rtime;
timeptr = gmtime(&last_modified);
strftime(newheader, sizeof(newheader), "%a, %d %b %Y %T GMT", timeptr);
*header, rtime, (rtime == 1 || rtime == -1) ? "r": "rs");
rtime *= 3600;
+#if !defined(_WIN32) && !defined(__OS2__)
rtime = random() % rtime;
-
+#else
+ rtime = rand() % rtime;
+#endif /* (_WIN32 || __OS2__) */
if(newval[0] == '-')
{
rtime *= -1;