call sodium_init()

This commit is contained in:
cathugger 2018-08-24 21:31:57 +03:00
parent e7ce68c245
commit b710adea5d
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8

5
main.c
View file

@ -9,6 +9,7 @@
#include <time.h>
#include <pthread.h>
#include <signal.h>
#include <sodium/core.h>
#include <sodium/randombytes.h>
#include <sodium/utils.h>
@ -498,6 +499,10 @@ int main(int argc,char **argv)
#endif
int tret;
if (sodium_init() < 0) {
fprintf(stderr,"sodium_init() failed\n");
return 1;
}
ge_initeightpoint();
filters_init();