Good afternoon.
Is it possible to make it possible to use an external generator for address mode and rnd160? The built-in generator does not know how to filter data and iterates over all characters in a row. Or modify the built-in generator to add filtering functionality.
Good afternoon. Is it possible to make it possible to use an external generator for address mode and rnd160? The built-in generator does not know how to filter data and iterates over all characters in a row. Or modify the built-in generator to add filtering functionality.
include
include
include
include
include
include
include
include
std::atomic counter;
std::ofstream file;
std::mutex file_mutex;
bool has_three_in_a_row(const std::string &s) { std::regex e("(.)\1{2,}"); return std::regex_search(s, e); }
void worker(mpz_t start, mpz_t end) { mpz_t i; mpz_init(i); mpz_set(i, start); while (mpz_cmp(i, end) <= 0) { char *hex_number_c_str = mpz_get_str(NULL, 16, i); std::string hex_number(hex_number_c_str); std::transform(hex_number.begin(), hex_number.end(), hex_number.begin(), ::toupper); free(hex_number_c_str); std::map<char, int> char_count; bool over_three = false; for (char c : hex_number) { char_count[c]++; if (char_count[c] > 3) { over_three = true; break; } } if (!over_three && !has_three_in_a_row(hex_number)) {
}
int main() { mpz_t start, end; mpz_init_set_str(start, "20FFFFFFFFFFFFFFF", 16); mpz_init_set_str(end, "3FF00000000000000", 16);
}