forked from wolfSSL/wolfssl
update VXWORKS GenerateSeed() - no printf, error return
This commit is contained in:
@ -1275,8 +1275,8 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
/* RANDOM ENTORPY INJECT component must be enabled in VSB project */
|
/* RANDOM ENTORPY INJECT component must be enabled in VSB project */
|
||||||
status = randBytes (output, sz);
|
status = randBytes (output, sz);
|
||||||
if (status == ERROR) {
|
if (status == ERROR) {
|
||||||
printf("Random seed failed! Enable RANDOM ENTROPY INJECT.");
|
WOLFSSL_MSG("Random seed failed! Enable RANDOM ENTROPY INJECT.");
|
||||||
return status;
|
return RNG_FAILURE_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user