diff --git a/src/aead.c b/src/aead.c index d49b349d..29c64c1d 100644 --- a/src/aead.c +++ b/src/aead.c @@ -693,11 +693,6 @@ aead_key_init(int method, const char *pass, const char *key) cipher_t *cipher = (cipher_t *)ss_malloc(sizeof(cipher_t)); memset(cipher, 0, sizeof(cipher_t)); - // Initialize sodium for random generator - if (sodium_init() == -1) { - FATAL("Failed to initialize sodium"); - } - if (method >= CHACHA20POLY1305IETF) { cipher_kt_t *cipher_info = (cipher_kt_t *)ss_malloc(sizeof(cipher_kt_t)); cipher->info = cipher_info;