diff options
-rw-r--r-- | lib/portability.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portability.c b/lib/portability.c index 80ca8c9a..1415141f 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -36,7 +36,7 @@ void xgetrandom(void *buf, unsigned buflen, unsigned flags) #if CFG_TOYBOX_GETRANDOM if (buflen != getrandom(buf, buflen, flags)) - if (!CFG_TOYBOX_ANDROID || errno!=ENOSYS) perror_exit("getrandom"); + if (!CFG_TOYBOX_ON_ANDROID || errno!=ENOSYS) perror_exit("getrandom"); #endif fd = xopen(flags ? "/dev/random" : "/dev/urandom", O_RDONLY); |