summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-06-25 16:31:04 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-06-25 16:31:04 +0000
commita9fd65357f01ffc2f5e5da30bff081df779975de (patch)
treea6c4c93baf2627afea0a4ae9058d63a0396c6cea /lib/libcrypto
parent19487d669912f904a9817a11a780084741153367 (diff)
comment fixes from theo
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/crypto/getentropy_linux.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libcrypto/crypto/getentropy_linux.c b/lib/libcrypto/crypto/getentropy_linux.c
index da86137e5a0..d231bb9601a 100644
--- a/lib/libcrypto/crypto/getentropy_linux.c
+++ b/lib/libcrypto/crypto/getentropy_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getentropy_linux.c,v 1.10 2014/06/25 16:29:30 beck Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.11 2014/06/25 16:31:03 beck Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -108,9 +108,10 @@ getentropy(void *buf, size_t len)
* essentially the same problems as /dev/urandom.
*
* Numerous setbacks have been encountered in their deprecation
- * schedule, so as of June 2014 the kernel ABI still exists. The
- * sysctl() stub in libc is missing on some systems. There are
- * also reports that some kernels spew messages to the console.
+ * schedule, so as of June 2014 the kernel ABI still exists on
+ * most Linux architectures. The sysctl() stub in libc is missing
+ * on some systems. There are also reports that some kernels
+ * spew messages to the console.
*/
ret = getentropy_sysctl(buf, len);
if (ret != -1)
@@ -153,7 +154,7 @@ getentropy(void *buf, size_t len)
}
/*
- * XXX Should be replaced with a proper entropy measure.
+ * Basic sanity checking; wish we could do better.
*/
static int
gotdata(char *buf, size_t len)