From 1b87626e9f7de6e17dce75aa5fd51ba5ca7b8e33 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 26 Apr 2013 17:05:23 -0700 Subject: [PATCH] Move randombytes_stir() before returning sodium_init(). --- src/libsodium/sodium/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/sodium/core.c b/src/libsodium/sodium/core.c index 71673b92..e087c0a9 100644 --- a/src/libsodium/sodium/core.c +++ b/src/libsodium/sodium/core.c @@ -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;