summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arc4random/getentropy_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/arc4random/getentropy_linux.c')
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c
index bc7a6bef7b..c7c39c234f 100644
--- a/src/lib/libcrypto/arc4random/getentropy_linux.c
+++ b/src/lib/libcrypto/arc4random/getentropy_linux.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_linux.c,v 1.47 2020/05/17 14:44:20 deraadt Exp $ */ 1/* $OpenBSD: getentropy_linux.c,v 1.48 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>
@@ -212,7 +212,7 @@ start:
212#ifdef O_CLOEXEC 212#ifdef O_CLOEXEC
213 flags |= O_CLOEXEC; 213 flags |= O_CLOEXEC;
214#endif 214#endif
215 fd = open("/dev/urandom", flags, 0); 215 fd = open("/dev/urandom", flags);
216 if (fd == -1) { 216 if (fd == -1) {
217 if (errno == EINTR) 217 if (errno == EINTR)
218 goto start; 218 goto start;