feat: reduce word list size

This commit is contained in:
mandlm 2024-03-20 10:47:38 +01:00
parent 2a8b342b91
commit 9a855daabf
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -7,7 +7,7 @@
const std::string WordListGenerator::charset_ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; const std::string WordListGenerator::charset_ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::vector<std::string> WordListGenerator::generate() { std::vector<std::string> WordListGenerator::generate() {
const size_t multiplier = 10; const size_t multiplier = 1;
std::vector<std::string> result; std::vector<std::string> result;
result.reserve(multiplier * std::pow(charset_.length(), 4)); result.reserve(multiplier * std::pow(charset_.length(), 4));