From 7f2fdf250aa11813d2b27abb5d0f6e6f4258a551 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Fri, 23 Jan 2026 18:33:03 +0100 Subject: [PATCH] Risolve warning di compilazione in p2pk_bruteforce --- bruteforce/p2pk_bruteforce.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bruteforce/p2pk_bruteforce.cpp b/bruteforce/p2pk_bruteforce.cpp index 37c9dd4..f69c9c9 100644 --- a/bruteforce/p2pk_bruteforce.cpp +++ b/bruteforce/p2pk_bruteforce.cpp @@ -41,7 +41,6 @@ static volatile int keep_running = 1; static secp256k1_context* ctx = NULL; static std::vector target_keys; static std::unordered_set target_set; -static uint64_t total_attempts = 0; static uint64_t attempts_per_thread[MAX_THREADS] = {0}; static time_t start_time; static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; @@ -162,7 +161,7 @@ int load_target_keys(const char* filename) { // Genera una chiave privata casuale nel range assegnato al thread void generate_random_privkey_in_range(uint8_t* privkey, uint64_t* seed, - const uint8_t* range_start, const uint8_t* range_end) { + const uint8_t* range_start, const uint8_t* /*range_end*/) { // Usa xorshift64 per generare 32 bytes casuali for (int i = 0; i < 32; i++) { *seed ^= *seed << 13;