remove duplicate error message
This commit is contained in:
parent
5793a18358
commit
93954add96
@ -33,9 +33,6 @@ const dict = loadWords()
|
|||||||
|
|
||||||
|
|
||||||
proc genPassphrase(length, dictSize: int): string =
|
proc genPassphrase(length, dictSize: int): string =
|
||||||
if dictSize < 100 or dictSize > dict.len:
|
|
||||||
quit("Dictionary size must be between 100 and " & $dict.len, 1)
|
|
||||||
|
|
||||||
var rands = newSeq[uint64](length)
|
var rands = newSeq[uint64](length)
|
||||||
discard randomBytes(rands)
|
discard randomBytes(rands)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user