Skip to content

Commit

Permalink
Merge pull request #547 from czurnieden/correct_randprime_sanitation
Browse files Browse the repository at this point in the history
Correct sanitation of mp_prime_rand
  • Loading branch information
sjaeckel authored Mar 11, 2024
2 parents 027ae66 + f108889 commit 7f39a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp_prime_rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mp_err mp_prime_rand(mp_int *a, int t, int size, int flags)
mp_err err;

/* sanity check the input */
if ((size <= 1) || (t <= 0)) {
if (size <= 1) {
return MP_VAL;
}

Expand Down

0 comments on commit 7f39a72

Please sign in to comment.