diff --git a/library/bignum.c b/library/bignum.c index ac7f25c01..b9175f6a3 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1794,9 +1794,6 @@ int mpi_fill_random( mpi *X, size_t size, if( size > POLARSSL_MPI_MAX_SIZE ) return( POLARSSL_ERR_MPI_BAD_INPUT_DATA ); - MPI_CHK( mpi_grow( X, CHARS_TO_LIMBS( size ) ) ); - MPI_CHK( mpi_lset( X, 0 ) ); - MPI_CHK( f_rng( p_rng, buf, size ) ); MPI_CHK( mpi_read_binary( X, buf, size ) );