Merge pull request #2661 from jimklimov/brandom

Problem: getrandom usage breaks build
This commit is contained in:
Constantin Rack 2017-08-07 09:07:13 +02:00 committed by GitHub
commit 02e93492b6

View File

@ -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