wow
This commit is contained in:
parent
5625d6bd14
commit
000359f26c
3 changed files with 3 additions and 6 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,5 +1,5 @@
|
|||
tests/*.png
|
||||
tests/*.gerbera
|
||||
tests/*
|
||||
!test/test.sh
|
||||
build/
|
||||
.vscode
|
||||
.DS_Store
|
||||
|
|
@ -107,6 +107,5 @@ int decrypt_file(const char *input_path, const char *output_path,
|
|||
cleanup:
|
||||
if (input != NULL) fclose(input);
|
||||
if (output != NULL && fclose(output) != 0) result = 1;
|
||||
if (result != 0) remove(output_path);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
#include "gerbera.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
|
|
@ -22,7 +20,7 @@ static int random_nonce(uint8_t nonce[GERBERA_NONCE_SIZE])
|
|||
static int initialized = 0;
|
||||
|
||||
if (!initialized) {
|
||||
srand((unsigned)time(NULL));
|
||||
srand((unsigned)time(NULL) ^ (unsigned)clock());
|
||||
initialized = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue