From 92633542eb0c2664e73450504f91a756b78300cb Mon Sep 17 00:00:00 2001 From: Panagiotis Chartas Date: Sat, 10 Aug 2024 08:29:22 +0200 Subject: [PATCH] Speed improvement --- psudohash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/psudohash.py b/psudohash.py index b16604f..2902a91 100644 --- a/psudohash.py +++ b/psudohash.py @@ -195,7 +195,7 @@ def banner(): if (args.common_paddings_before or args.common_paddings_after): - common_paddings = unique(common_paddings) + common_paddings = list(set(common_paddings)) # ----------------( Functions )---------------- # @@ -274,7 +274,7 @@ def mutations_handler(kword, trans_chars, total): for m in m_set: basic_mutations.append(m) - basic_mutations = unique(basic_mutations) + basic_mutations = list(set(basic_mutations)) with open(outfile, 'a') as wordlist: for m in basic_mutations: @@ -298,7 +298,7 @@ def caseMutationsHandler(word, mutability): if not mutability: - basic_mutations = unique(basic_mutations) + basic_mutations = list(set(basic_mutations)) with open(outfile, 'a') as wordlist: for m in basic_mutations: