fix runtime for dogecoin on Alpine Linux musl libc

This commit is contained in:
chey 2021-06-02 21:39:06 +00:00
parent ab7646a790
commit 93beb1c83a

View file

@ -254,6 +254,7 @@ void scrypt_detect_sse2()
void scrypt_1024_1_1_256(const char *input, char *output)
{
char scratchpad[SCRYPT_SCRATCHPAD_SIZE];
static char scratchpad[SCRYPT_SCRATCHPAD_SIZE];
memset(scratchpad, 0, sizeof(scratchpad));
scrypt_1024_1_1_256_sp(input, output, scratchpad);
}