Skip to content

Commit

Permalink
remove dead code from secp256k1_context_randomize: not reachable as t…
Browse files Browse the repository at this point in the history
…yping input values coerces
  • Loading branch information
afk11 committed Aug 26, 2019
1 parent d7a843f commit 701f3bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions secp256k1/secp256k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,10 +786,6 @@ PHP_FUNCTION(secp256k1_context_randomize)
return;
}
seed32 = (unsigned char *) Z_STRVAL_P(zSeed);
} else if (Z_TYPE_P(zSeed) != IS_NULL) {
zend_throw_exception_ex(spl_ce_InvalidArgumentException, 0 TSRMLS_CC,
"secp256k1_context_randomize(): Parameter 2 should be a 32 byte string, or null");
return;
}
}

Expand Down

0 comments on commit 701f3bc

Please sign in to comment.