Risolve warning di compilazione in p2pk_bruteforce

This commit is contained in:
2026-01-23 18:33:03 +01:00
parent bf9dbdf870
commit 7f2fdf250a

View File

@@ -41,7 +41,6 @@ static volatile int keep_running = 1;
static secp256k1_context* ctx = NULL;
static std::vector<TargetKey> target_keys;
static std::unordered_set<std::string> 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;