not good to check that prng is non-NULL

e.g. sprng() lives w/o context
This commit is contained in:
Steffen Jaeckel 2017-07-04 10:20:56 +02:00
parent a0f2abc5b5
commit e647f9a0e4

View File

@ -50,7 +50,6 @@ int dh_make_key(prng_state *prng, int wprng, dh_key *key)
LTC_ARGCHK(key != NULL);
LTC_ARGCHK(ltc_mp.name != NULL);
LTC_ARGCHK(prng != NULL);
/* good prng? */
if ((err = prng_is_valid(wprng)) != CRYPT_OK) {