Skip to content

Commit 7f39a72

Browse files
authored
Merge pull request #547 from czurnieden/correct_randprime_sanitation
Correct sanitation of mp_prime_rand
2 parents 027ae66 + f108889 commit 7f39a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp_prime_rand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mp_err mp_prime_rand(mp_int *a, int t, int size, int flags)
2626
mp_err err;
2727

2828
/* sanity check the input */
29-
if ((size <= 1) || (t <= 0)) {
29+
if (size <= 1) {
3030
return MP_VAL;
3131
}
3232

0 commit comments

Comments
 (0)