[Cryptech-Commits] [sw/libhal] 02/04: Fencepost error (1-based counting using xrange(), sigh).

git at cryptech.is git at cryptech.is
Mon Jul 24 15:51:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/libhal.

commit e712096a60017cd624ec67f75cbf414df57455a7
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Jul 3 16:46:50 2017 -0400

    Fencepost error (1-based counting using xrange(), sigh).
---
 tests/time-keygen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/time-keygen.py b/tests/time-keygen.py
old mode 100644
new mode 100755
index fcd47c6..b7311ba
--- a/tests/time-keygen.py
+++ b/tests/time-keygen.py
@@ -22,7 +22,7 @@ hsm.login(HAL_USER_NORMAL, args.pin)
 flags = HAL_KEY_FLAG_USAGE_DIGITALSIGNATURE | (HAL_KEY_FLAG_TOKEN if args.token else 0)
 sum   = timedelta()
 
-for n in xrange(1, args.iterations):
+for n in xrange(1, args.iterations + 1):
 
     t0 = datetime.now()
 



More information about the Commits mailing list