diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 5664f7b97..3f10a7109 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -1706,13 +1706,6 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\ TEST_PASS("asn test passed!\n"); #endif -#ifndef WC_NO_RNG - if ( (ret = random_test()) != 0) - TEST_FAIL("RANDOM test failed!\n", ret); - else - TEST_PASS("RANDOM test passed!\n"); -#endif /* WC_NO_RNG */ - #ifndef NO_MD5 if ( (ret = md5_test()) != 0) TEST_FAIL("MD5 test failed!\n", ret); @@ -1797,6 +1790,13 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\ TEST_PASS("SHA-3 test passed!\n"); #endif +#ifndef WC_NO_RNG + if ((ret = random_test()) != 0) + TEST_FAIL("RANDOM test failed!\n", ret); + else + TEST_PASS("RANDOM test passed!\n"); +#endif /* WC_NO_RNG */ + #ifdef WOLFSSL_SHAKE128 if ( (ret = shake128_test()) != 0) TEST_FAIL("SHAKE128 test failed!\n", ret);