Skip to content

Commit 1e1998d

Browse files
committed
Guard RBGC next-seed test calls
1 parent 779a45f commit 1e1998d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/api/test_random.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,10 +2407,12 @@ int test_wc_RngExtrasStateMachines(void)
24072407
/* A credited child reseed drives the credit/stratum clauses. */
24082408
(void)wc_RNG_DRBG_ReseedRBGC(child, &root, out, sizeof(out));
24092409
(void)wc_RNG_DRBG_StirRBGC(child, &root, out, sizeof(out));
2410+
#ifdef WC_RNG_HAVE_NEXT_SEED
24102411
/* NextSeedGenerate_RBGC: the root == NULL clause. */
24112412
ExpectIntEQ(wc_RNG_DRBG_NextSeedGenerate_RBGC(child, NULL, 1),
24122413
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
24132414
(void)wc_RNG_DRBG_NextSeedGenerate_RBGC(child, &root, 1);
2415+
#endif
24142416
#ifdef WC_RNG_HAVE_LOCK
24152417
ExpectIntEQ(wc_RNG_lock_put(child, 0), 0);
24162418
#endif

0 commit comments

Comments
 (0)