diff options
author | Helmut Grohne <helmut@subdivi.de> | 2009-06-24 17:53:16 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2009-06-24 17:53:16 +0200 |
commit | 53ac558fb037461ae7d5dcdab12102f142e9296b (patch) | |
tree | 203345a0392a07fbef0576625263cfd91c79182a /wsgitools | |
parent | b9c705c8d934748f54224f3f6c6c942d11fbe5e7 (diff) | |
download | wsgitools-53ac558fb037461ae7d5dcdab12102f142e9296b.tar.gz |
documented potential overflow in digest
Diffstat (limited to 'wsgitools')
-rwxr-xr-x | wsgitools/digest.py | 3 |
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): |