Commit 02e93492 authored by Constantin Rack's avatar Constantin Rack Committed by GitHub

Merge pull request #2661 from jimklimov/brandom

Problem: getrandom usage breaks build
parents 98a3bb6f 3046fe20
...@@ -933,7 +933,7 @@ void randombytes (unsigned char *x,unsigned long long xlen) ...@@ -933,7 +933,7 @@ void randombytes (unsigned char *x,unsigned long long xlen)
i = 1048576; i = 1048576;
#ifdef ZMQ_HAVE_GETRANDOM #ifdef ZMQ_HAVE_GETRANDOM
i = getrandom (x, i); i = getrandom (x, i, 0);
#else #else
i = read(fd,x,i); i = read(fd,x,i);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment