From d1aa75d7b2168a4d48a2b6f433ce343715e6508a Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 20 Dec 2022 22:01:27 +0100 Subject: [PATCH] Update of the RNG seed in mpi_mod_random_values The code had an earlier version. Update to the new seed that mpi_core_random_basic has moved to. Signed-off-by: Gilles Peskine --- tests/suites/test_suite_bignum_random.function | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/suites/test_suite_bignum_random.function b/tests/suites/test_suite_bignum_random.function index f2cb206fc..470914890 100644 --- a/tests/suites/test_suite_bignum_random.function +++ b/tests/suites/test_suite_bignum_random.function @@ -195,10 +195,7 @@ exit: void mpi_mod_random_values( int min, char *max_hex, int rep ) { /* Same RNG as in mpi_core_random_basic */ - mbedtls_test_rnd_pseudo_info rnd_core = { - {'T', 'h', 'i', 's', ' ', 'i', ',', 'a', - 's', 'e', 'e', 'd', '!', 0}, - 0, 0}; + mbedtls_test_rnd_pseudo_info rnd_core = rnd_pseudo_seed; mbedtls_test_rnd_pseudo_info rnd_mod_raw; memcpy( &rnd_mod_raw, &rnd_core, sizeof( rnd_core ) ); mbedtls_test_rnd_pseudo_info rnd_mod;