fixed 23 to 24 words

This commit is contained in:
tcsenpai 2024-07-24 00:02:16 +02:00
parent 66d1bc01cb
commit 44fa2c7c59

View File

@ -16,7 +16,7 @@ def gen_from_data(data):
wordlist = [w.strip() for w in f.readlines()] wordlist = [w.strip() for w in f.readlines()]
# Generating a seed from the binary data # Generating a seed from the binary data
seed = [] 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) index = int(bindata[11*i:11*(i+1)],2)
seed.append(wordlist[index]) seed.append(wordlist[index])
return seed return seed