summaryrefslogtreecommitdiff
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
commitfc1b280fee802bcd0e6d9c10a32bd325dfe909b7 (patch)
tree22ae055ae61d50f61789c49d6d3430fc18abbdf5
parentf77e6d669dc77510f523e8d5b51817a514425c3c (diff)
comment fixes from theo
-rw-r--r--lib/libcrypto/arc4random/getentropy_linux.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libcrypto/arc4random/getentropy_linux.c b/lib/libcrypto/arc4random/getentropy_linux.c
index da86137e5a0..d231bb9601a 100644
--- a/lib/libcrypto/arc4random/getentropy_linux.c
+++ b/lib/libcrypto/arc4random/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)