mirror of
https://git.wownero.com/wowlet/wownero-seed.git
synced 2024-12-22 07:48:52 +00:00
Fix undefined reference on Mac OS
This commit is contained in:
parent
55c3c547ed
commit
47303fb138
@ -66,9 +66,11 @@ void secure_random::gen_bytes(void* output, size_t size) {
|
|||||||
while (size) {
|
while (size) {
|
||||||
ssize_t len = read(fd, outptr, size);
|
ssize_t len = read(fd, outptr, size);
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
|
#ifndef __APPLE__
|
||||||
if (errno != EINTR && errno != EAGAIN) {
|
if (errno != EINTR && errno != EAGAIN) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
outptr += len;
|
outptr += len;
|
||||||
|
Loading…
Reference in New Issue
Block a user