Support splitting exhaustive tests across cores

This commit is contained in:
Pieter Wuille
2020-09-08 16:27:04 -07:00
parent e99b26fcd5
commit 39f67dd072
3 changed files with 37 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ static void secp256k1_rand_flip(unsigned char *b, size_t len) {
static void secp256k1_rand_init(const char* hexseed) {
unsigned char seed16[16] = {0};
if (hexseed) {
if (hexseed && strlen(hexseed) != 0) {
int pos = 0;
while (pos < 16 && hexseed[0] != 0 && hexseed[1] != 0) {
unsigned short sh;