1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-03 12:21:07 +00:00

Make DEFAULT_BENCHMARK_ALGORITHMS_CNT a true constant int

This commit is contained in:
jsteube 2016-09-27 11:09:17 +02:00
parent 0edc781861
commit cf154b3af1
3 changed files with 4 additions and 5 deletions

View File

@ -6,6 +6,4 @@
#ifndef _BENCHMARK_H #ifndef _BENCHMARK_H
#define _BENCHMARK_H #define _BENCHMARK_H
#define DEFAULT_BENCHMARK_ALGORITHMS_CNT 146
#endif // _BENCHMARK_H #endif // _BENCHMARK_H

View File

@ -6,7 +6,9 @@
#include "common.h" #include "common.h"
#include "benchmark.h" #include "benchmark.h"
const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[DEFAULT_BENCHMARK_ALGORITHMS_CNT] = const int DEFAULT_BENCHMARK_ALGORITHMS_CNT = 146;
const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[] =
{ {
900, 900,
0, 0,

View File

@ -95,6 +95,7 @@ extern hc_thread_mutex_t mux_display;
extern const unsigned int full01; extern const unsigned int full01;
extern const unsigned int full80; extern const unsigned int full80;
extern const int DEFAULT_BENCHMARK_ALGORITHMS_CNT;
extern const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[]; extern const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[];
const int comptime = COMPTIME; const int comptime = COMPTIME;
@ -2086,7 +2087,6 @@ static int outer_loop (user_options_t *user_options, user_options_extra_t *user_
*/ */
// if cracked / aborted remove last induction dictionary // if cracked / aborted remove last induction dictionary
induct_ctx_cleanup (induct_ctx); induct_ctx_cleanup (induct_ctx);
// wait for inner threads // wait for inner threads
@ -2122,7 +2122,6 @@ static int outer_loop (user_options_t *user_options, user_options_extra_t *user_
} }
// finally save left hashes // finally save left hashes
if ((hashes->hashlist_mode == HL_MODE_FILE) && (user_options->remove == true) && (hashes->digests_saved != hashes->digests_done)) if ((hashes->hashlist_mode == HL_MODE_FILE) && (user_options->remove == true) && (hashes->digests_saved != hashes->digests_done))
{ {
save_hash (user_options, hashconfig, hashes); save_hash (user_options, hashconfig, hashes);