Skip to content

Commit

Permalink
Random test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine committed Nov 7, 2024
1 parent 34dddd7 commit 6d23b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/s2n_random_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ static int s2n_random_test_case_default_cb(struct random_test_case *test_case)

EXPECT_EQUAL(s2n_common_tests(test_case), S2N_SUCCESS);

EXPECT_SUCCESS(s2n_cleanup_final());
EXPECT_SUCCESS(s2n_cleanup());

return EXIT_SUCCESS;
}
Expand Down Expand Up @@ -783,7 +783,7 @@ static int s2n_random_noop_destructor_test_cb(struct random_test_case *test_case
static int s2n_random_rand_bytes_after_cleanup_cb(struct random_test_case *test_case)
{
EXPECT_SUCCESS(s2n_init());
EXPECT_SUCCESS(s2n_cleanup());
EXPECT_SUCCESS(s2n_cleanup_final());

unsigned char rndbytes[16];
EXPECT_EQUAL(RAND_bytes(rndbytes, sizeof(rndbytes)), 1);
Expand Down

0 comments on commit 6d23b13

Please sign in to comment.