summaryrefslogtreecommitdiff
path: root/admin/benchmarks.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-04-10 12:33:06 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-04-10 12:33:06 -0400
commitd1aaad2741b18bf582e938c03230a84e158a7445 (patch)
tree43ed0413f6cc62280f97cf38690495606a673c90 /admin/benchmarks.py
parentf74deb32c6af1eac658e7d30ee3fe20e8fdf141c (diff)
downloadpasslib-d1aaad2741b18bf582e938c03230a84e158a7445.tar.gz
parse_mc3/render_mc3 helpers now handle rounds str<->int, consolidated a bunch of redundant code
Diffstat (limited to 'admin/benchmarks.py')
-rw-r--r--admin/benchmarks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/benchmarks.py b/admin/benchmarks.py
index bdf2fdb..91c58e1 100644
--- a/admin/benchmarks.py
+++ b/admin/benchmarks.py
@@ -50,7 +50,7 @@ class BlankHandler(uh.HasRounds, uh.HasSalt, uh.GenericHandler):
@classmethod
def from_string(cls, hash):
r,s,c = uh.parse_mc3(hash, cls.ident, handler=cls)
- return cls(rounds=int(r), salt=s, checksum=c)
+ return cls(rounds=r, salt=s, checksum=c)
def to_string(self):
return uh.render_mc3(self.ident, self.rounds, self.salt, self.checksum)