Commit 9bb04b63 authored by Paul Bakker's avatar Paul Bakker
Browse files

Removed redundant code in mpi_fill_random()

parent 2ca1dc89
......@@ -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 ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment