diff options
author | Matt Johnston <matt@ucc.asn.au> | 2007-02-04 10:32:59 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2007-02-04 10:32:59 +0000 |
commit | fd304d763ace5074dc8e26b29fecc88d0d7ea006 (patch) | |
tree | f54c32bfbe83b44f715ab47a5863f84f585cfbe5 /random.c | |
parent | d9aeb2773e236e662c8b493f4bcee978f9908d7c (diff) | |
parent | 60d4cd599621a843095a0948c58c40b0ba286de2 (diff) |
merge of 'b1dd3b94e60a07a176dba2b035ac79968595990a'
and 'bcb33fce2fad01a7626598209d43af3571bd86f0'
--HG--
extra : convert_revision : 691c56da3db2685f58ea53540a73c1b79e7df9cd
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -234,8 +234,7 @@ void gen_random_mpint(mp_int *max, mp_int *rand) { /* keep regenerating until we get one satisfying * 0 < rand < max */ - } while ( ( (max != NULL) && (mp_cmp(rand, max) != MP_LT) ) - || (mp_cmp_d(rand, 0) != MP_GT) ); + } while (mp_cmp(rand, max) != MP_LT); m_burn(randbuf, len); m_free(randbuf); } |