Move randombytes_stir() before returning sodium_init().

This commit is contained in:
Frank Denis 2013-04-26 17:05:23 -07:00
parent 8de0ae0e73
commit 1b87626e9f

View File

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