remove BATCHNUM limitations

This commit is contained in:
cathugger
2019-11-20 16:17:21 +00:00
parent 9bc52c5fb7
commit 5c7e0144d9
2 changed files with 71 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ void worker_init(void)
#ifdef PASSPHRASE
// How many times we loop before a reseed
#define DETERMINISTIC_LOOP_COUNT 1<<24
#define DETERMINISTIC_LOOP_COUNT (1<<24)
pthread_mutex_t determseed_mutex;
u8 determseed[SEED_LEN];
@@ -212,13 +212,6 @@ static void reseedright(u8 sk[SECRET_LEN])
#if !defined(BATCHNUM)
#define BATCHNUM 2048
#else
#if BATCHNUM & (BATCHNUM - 1)
#error "BATCHNUM must be power of 2"
#endif
#if (BATCHNUM * 8) > DETERMINISTIC_LOOP_COUNT
#error "BATCHNUM is too large"
#endif
#endif
#include "worker_batch.inc.h"