From 3046fe20536d25b3157b90b9747105d5db7213b0 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 6 Aug 2017 19:58:38 +0100 Subject: [PATCH] Problem: getrandom usage breaks build Solution: add missing flags parameter --- src/tweetnacl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tweetnacl.c b/src/tweetnacl.c index 3c07621e..e081cd87 100644 --- a/src/tweetnacl.c +++ b/src/tweetnacl.c @@ -933,7 +933,7 @@ void randombytes (unsigned char *x,unsigned long long xlen) i = 1048576; #ifdef ZMQ_HAVE_GETRANDOM - i = getrandom (x, i); + i = getrandom (x, i, 0); #else i = read(fd,x,i); #endif