Risolve warning di compilazione in p2pk_bruteforce
This commit is contained in:
@@ -41,7 +41,6 @@ static volatile int keep_running = 1;
|
|||||||
static secp256k1_context* ctx = NULL;
|
static secp256k1_context* ctx = NULL;
|
||||||
static std::vector<TargetKey> target_keys;
|
static std::vector<TargetKey> target_keys;
|
||||||
static std::unordered_set<std::string> target_set;
|
static std::unordered_set<std::string> target_set;
|
||||||
static uint64_t total_attempts = 0;
|
|
||||||
static uint64_t attempts_per_thread[MAX_THREADS] = {0};
|
static uint64_t attempts_per_thread[MAX_THREADS] = {0};
|
||||||
static time_t start_time;
|
static time_t start_time;
|
||||||
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
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
|
// Genera una chiave privata casuale nel range assegnato al thread
|
||||||
void generate_random_privkey_in_range(uint8_t* privkey, uint64_t* seed,
|
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
|
// Usa xorshift64 per generare 32 bytes casuali
|
||||||
for (int i = 0; i < 32; i++) {
|
for (int i = 0; i < 32; i++) {
|
||||||
*seed ^= *seed << 13;
|
*seed ^= *seed << 13;
|
||||||
|
|||||||
Reference in New Issue
Block a user