diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index cb623ab37..6456825b7 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -1275,8 +1275,8 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz) /* RANDOM ENTORPY INJECT component must be enabled in VSB project */ status = randBytes (output, sz); if (status == ERROR) { - printf("Random seed failed! Enable RANDOM ENTROPY INJECT."); - return status; + WOLFSSL_MSG("Random seed failed! Enable RANDOM ENTROPY INJECT."); + return RNG_FAILURE_E; } return 0;