summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arc4random/getentropy_osx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/arc4random/getentropy_osx.c')
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_osx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_osx.c b/src/lib/libcrypto/arc4random/getentropy_osx.c
index 5d4067bb8e..db028d19b8 100644
--- a/src/lib/libcrypto/arc4random/getentropy_osx.c
+++ b/src/lib/libcrypto/arc4random/getentropy_osx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_osx.c,v 1.13 2020/05/17 14:44:20 deraadt Exp $ */ 1/* $OpenBSD: getentropy_osx.c,v 1.14 2021/10/24 21:24:20 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -158,7 +158,7 @@ start:
158#ifdef O_CLOEXEC 158#ifdef O_CLOEXEC
159 flags |= O_CLOEXEC; 159 flags |= O_CLOEXEC;
160#endif 160#endif
161 fd = open("/dev/urandom", flags, 0); 161 fd = open("/dev/urandom", flags);
162 if (fd == -1) { 162 if (fd == -1) {
163 if (errno == EINTR) 163 if (errno == EINTR)
164 goto start; 164 goto start;