mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-09 19:17:19 -03:00
call sodium_init()
This commit is contained in:
parent
e7ce68c245
commit
b710adea5d
1 changed files with 5 additions and 0 deletions
5
main.c
5
main.c
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue