From 44fa2c7c59fcf010332544f376d5b6794a59feb4 Mon Sep 17 00:00:00 2001 From: tcsenpai Date: Wed, 24 Jul 2024 00:02:16 +0200 Subject: [PATCH] fixed 23 to 24 words --- libs/word_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/word_gen.py b/libs/word_gen.py index 1563ef2..5e1436f 100644 --- a/libs/word_gen.py +++ b/libs/word_gen.py @@ -16,7 +16,7 @@ def gen_from_data(data): wordlist = [w.strip() for w in f.readlines()] # Generating a seed from the binary data seed = [] - for i in range(len(bindata)//11): + for i in range((len(bindata)//11)+1): index = int(bindata[11*i:11*(i+1)],2) seed.append(wordlist[index]) - return seed \ No newline at end of file + return seed