summaryrefslogtreecommitdiffstats
path: root/providers/implementations/rands/test_rng.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/rands/test_rng.c')
-rw-r--r--providers/implementations/rands/test_rng.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/providers/implementations/rands/test_rng.c b/providers/implementations/rands/test_rng.c
index d28f7e0937..1335de8681 100644
--- a/providers/implementations/rands/test_rng.c
+++ b/providers/implementations/rands/test_rng.c
@@ -79,11 +79,12 @@ static void test_rng_free(void *vtest)
static int test_rng_instantiate(void *vtest, unsigned int strength,
int prediction_resistance,
- const unsigned char *pstr, size_t pstr_len)
+ const unsigned char *pstr, size_t pstr_len,
+ const OSSL_PARAM params[])
{
PROV_TEST_RNG *t = (PROV_TEST_RNG *)vtest;
- if (strength > t->strength)
+ if (!test_rng_set_ctx_params(t, params) || strength > t->strength)
return 0;
t->state = EVP_RAND_STATE_READY;