mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-20 13:27:55 +00:00
MPI random test: fix small-range test stats check when min > 1
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
8190d3129d
commit
c520d7ab59
|
@ -1518,7 +1518,7 @@ void mpi_random_many( int min, data_t *bound_bytes, int iterations )
|
||||||
|
|
||||||
if( full_stats )
|
if( full_stats )
|
||||||
{
|
{
|
||||||
for( b = 1; b < stats_len; b++ )
|
for( b = min; b < stats_len; b++ )
|
||||||
{
|
{
|
||||||
mbedtls_test_set_step( 1000000 + b );
|
mbedtls_test_set_step( 1000000 + b );
|
||||||
/* Assert that each value has been reached at least once.
|
/* Assert that each value has been reached at least once.
|
||||||
|
|
Loading…
Reference in a new issue