RNG Update

1. When the seed callback is enabled, allow wc_GenerateSeed() to be used
   as a default callback.
2. Modify all the tests and examples to use the default seed callback if
   the seed callback is enabled.
This commit is contained in:
John Safranek
2021-03-24 16:45:19 -07:00
parent 1c064dd957
commit 0f0eebfc08
14 changed files with 46 additions and 9 deletions

View File

@@ -1972,6 +1972,9 @@ int benchmark_init(void)
printf("wolfCrypt_Init failed %d\n", ret);
return EXIT_FAILURE;
}
#ifdef WC_RNG_SEED_CB
wc_SetSeed_Cb(wc_GenerateSeed);
#endif
bench_stats_init();