1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-18 04:00:03 +02:00

src/key_search.h: remove key_search() it does not make sense and key_contains_word() can be used instead.

This commit is contained in:
Henrik Hautakoski 2020-01-10 10:40:28 +01:00
parent bae3721211
commit a4dec2e39b
3 changed files with 4 additions and 21 deletions

View file

@ -22,7 +22,8 @@ static void thr_proc(const strlist_t& word_list) {
while (g_count < g_max) {
std::string word;
if (key_search(&pair, word, word_list)) {
ec_generate_key(&pair);
if (key_contains_word(&pair, word_list, word)) {
// Guard output with mutex, so we don't get
// interrupted mid write and can write to g_count safely.