Skip to content

Commit e647f9a

Browse files
committed
not good to check that prng is non-NULL
e.g. sprng() lives w/o context
1 parent a0f2abc commit e647f9a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/pk/dh/dh_make_key.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ int dh_make_key(prng_state *prng, int wprng, dh_key *key)
5050

5151
LTC_ARGCHK(key != NULL);
5252
LTC_ARGCHK(ltc_mp.name != NULL);
53-
LTC_ARGCHK(prng != NULL);
5453

5554
/* good prng? */
5655
if ((err = prng_is_valid(wprng)) != CRYPT_OK) {

0 commit comments

Comments
 (0)