mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Merge pull request #2661 from jimklimov/brandom
Problem: getrandom usage breaks build
This commit is contained in:
commit
02e93492b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user