Call randombytes_stir() in sodium_init().

This commit is contained in:
Frank Denis 2013-04-26 17:03:50 -07:00
parent 076eb56e24
commit 8de0ae0e73

View File

@ -12,6 +12,7 @@ sodium_init(void)
if (initialized != 0) { if (initialized != 0) {
return 1; return 1;
} }
randombytes_stir();
if (crypto_onetimeauth_pick_best_implementation() == NULL) { if (crypto_onetimeauth_pick_best_implementation() == NULL) {
return -1; return -1;
} }