dgaudet 97/10/24 01:56:48
Modified: src/modules/standard mod_unique_id.c
Log:
I'm in the middle of documenting the algorithm used here... I found another
problem to defend against.
Revision Changes Path
1.7 +4 -1 apachen/src/modules/standard/mod_unique_id.c
Index: mod_unique_id.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_unique_id.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mod_unique_id.c 1997/10/22 20:30:30 1.6
+++ mod_unique_id.c 1997/10/24 08:56:46 1.7
@@ -245,7 +245,10 @@
cur_unique_id.counter = 0;
}
else {
- cur_unique_id.counter = tv.tv_usec;
+ /* Some systems have very low variance on the low end of their
+ * system counter, defend against that.
+ */
+ cur_unique_id.counter = tv.tv_usec / 10;
}
#else
cur_unique_id.counter = 0;