# HG changeset patch # User Franz Glasner # Date 1738932123 -3600 # Node ID 5f4c81313be78e4a448c90c3e96d2079c02182f6 # Parent 7ac8a2537bc9f09f7b83d931ce456ebfbc334bb8 Assert that the generated password has the required (output) length diff -r 7ac8a2537bc9 -r 5f4c81313be7 cutils/genpwd.py --- a/cutils/genpwd.py Fri Feb 07 13:38:06 2025 +0100 +++ b/cutils/genpwd.py Fri Feb 07 13:42:03 2025 +0100 @@ -76,6 +76,7 @@ else: raise NotImplementedError("type not yet implemented: %s" % opts.repertoire) + assert len(pwd) == opts.req_length print(pwd)