summaryrefslogtreecommitdiff
path: root/wsgitools/digest.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/digest.py')
-rwxr-xr-xwsgitools/digest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsgitools/digest.py b/wsgitools/digest.py
index f6792b9..52cdcee 100755
--- a/wsgitools/digest.py
+++ b/wsgitools/digest.py
@@ -119,7 +119,8 @@ def format_time(seconds):
@type seconds: float
@rtype: str
"""
- return "%13X" % int(seconds * 1000000)
+ # the overflow will happen about 2112
+ return "%013X" % int(seconds * 1000000)
__all__.append("StatelessNonceStore")
class StatelessNonceStore(NonceStoreBase):