summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-09-22 22:04:05 +0200
committerjonsykkel <jonrevold@gmail.com>2021-09-23 20:53:00 +0200
commit9ac1068afe0396b0862c00f5a364241b2ff01bbb (patch)
tree1ffdd3665d1cdf38e2f8db8a3b7f5118ef95b7ed
parentc6fdf6195b7a214acebcabf6c0e5862f427c2894 (diff)
downloadokeffa-9ac1068afe0396b0862c00f5a364241b2ff01bbb.tar.gz
0
-rw-r--r--calc/rng.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calc/rng.c b/calc/rng.c
index 74db66f..32b1ced 100644
--- a/calc/rng.c
+++ b/calc/rng.c
@@ -1,5 +1,6 @@
#include "rng.h"
#include "os.h"
+#include <okeffa/fz_basic.h>
#include <fcntl.h>
#include <unistd.h>
@@ -13,6 +14,7 @@ void rng_init(rng_t *rng,char const *path){
void rng_read(rng_t *rng,word_t *o,size_t len){
ssize_t b = len*WORD_BYTENESS;
+ fz_clear(o,len);
ssize_t r = read(rng->fd,o,b);
if(r < b){
eggog("could not read from rng!");