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:
parent
0edc781861
commit
cf154b3af1
@ -6,6 +6,4 @@
|
||||
#ifndef _BENCHMARK_H
|
||||
#define _BENCHMARK_H
|
||||
|
||||
#define DEFAULT_BENCHMARK_ALGORITHMS_CNT 146
|
||||
|
||||
#endif // _BENCHMARK_H
|
||||
|
@ -6,7 +6,9 @@
|
||||
#include "common.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,
|
||||
0,
|
||||
|
@ -95,6 +95,7 @@ extern hc_thread_mutex_t mux_display;
|
||||
extern const unsigned int full01;
|
||||
extern const unsigned int full80;
|
||||
|
||||
extern const int DEFAULT_BENCHMARK_ALGORITHMS_CNT;
|
||||
extern const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[];
|
||||
|
||||
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
|
||||
|
||||
induct_ctx_cleanup (induct_ctx);
|
||||
|
||||
// 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
|
||||
|
||||
if ((hashes->hashlist_mode == HL_MODE_FILE) && (user_options->remove == true) && (hashes->digests_saved != hashes->digests_done))
|
||||
{
|
||||
save_hash (user_options, hashconfig, hashes);
|
||||
|
Loading…
Reference in New Issue
Block a user