summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arc4random/getentropy_netbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/arc4random/getentropy_netbsd.c')
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_netbsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_netbsd.c b/src/lib/libcrypto/arc4random/getentropy_netbsd.c
index a9710ef923..2a73591f6e 100644
--- a/src/lib/libcrypto/arc4random/getentropy_netbsd.c
+++ b/src/lib/libcrypto/arc4random/getentropy_netbsd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_netbsd.c,v 1.1 2015/01/19 20:21:40 bcook Exp $ */ 1/* $OpenBSD: getentropy_netbsd.c,v 1.2 2015/09/11 11:52:55 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Pawel Jakub Dawidek <pjd@FreeBSD.org> 4 * Copyright (c) 2014 Pawel Jakub Dawidek <pjd@FreeBSD.org>
@@ -55,10 +55,10 @@ int
55getentropy(void *buf, size_t len) 55getentropy(void *buf, size_t len)
56{ 56{
57 if (len <= 256 && 57 if (len <= 256 &&
58 getentropy_sysctl(buf, len) == len) { 58 getentropy_sysctl(buf, len) == len) {
59 return 0; 59 return (0);
60 } 60 }
61 61
62 errno = EIO; 62 errno = EIO;
63 return -1; 63 return (-1);
64} 64}