summaryrefslogtreecommitdiff
path: root/wsgitools/digest.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2009-06-24 17:53:16 +0200
committerHelmut Grohne <helmut@subdivi.de>2009-06-24 17:53:16 +0200
commit53ac558fb037461ae7d5dcdab12102f142e9296b (patch)
tree203345a0392a07fbef0576625263cfd91c79182a /wsgitools/digest.py
parentb9c705c8d934748f54224f3f6c6c942d11fbe5e7 (diff)
downloadwsgitools-53ac558fb037461ae7d5dcdab12102f142e9296b.tar.gz
documented potential overflow in digest
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):