Explorar o código

not good to check that prng is non-NULL

e.g. sprng() lives w/o context
Steffen Jaeckel %!s(int64=8) %!d(string=hai) anos
pai
achega
e647f9a0e4
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/pk/dh/dh_make_key.c

+ 0 - 1
src/pk/dh/dh_make_key.c

@@ -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) {