X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=shamirs;a=blobdiff_plain;f=main.c;h=f79f074aec31327ca19b8cc0df7a151a0b8ecc81;hp=af5a7d791425ac764d77ffeb10640ad2186e4b24;hb=29327faf07a0331e10a2f9c7104a41870a74efe5;hpb=516104aa2dda7c609a083c8d4ff93e65a5148be5 diff --git a/main.c b/main.c index af5a7d7..f79f074 100644 --- a/main.c +++ b/main.c @@ -58,8 +58,6 @@ static void derive_missing_part(uint8_t total_shares, uint8_t shares_required, b // shares, because more shares could be added arbitrarily, any x should not be // able to rule out any possible secrets) and try each possible q, making sure // that each q gives us a new possibility for the secret. - bool impossible_secrets[P]; - memset(impossible_secrets, 0, sizeof(impossible_secrets)); for (uint16_t final_x = 1; final_x < P; final_x++) { bool x_already_used = false; for (uint8_t j = 0; j < shares_required; j++) {