summaryrefslogtreecommitdiffstats
path: root/lib/libc/crypt/arc4random.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-06-13 18:58:58 +0000
committerderaadt <deraadt@openbsd.org>2014-06-13 18:58:58 +0000
commit953a29a88441fb1db0009d5bc618709ca257334e (patch)
tree33f3d9effe2b377b2cc9c156b15e97e41fee09b7 /lib/libc/crypt/arc4random.c
parentCorrectly calculate the key block length when using export ciphers. (diff)
downloadwireguard-openbsd-953a29a88441fb1db0009d5bc618709ca257334e.tar.xz
wireguard-openbsd-953a29a88441fb1db0009d5bc618709ca257334e.zip
For now... assume success of getentropy() just like we assumed success
of sysctl(). Mark it with XXX while we consider.
Diffstat (limited to 'lib/libc/crypt/arc4random.c')
-rw-r--r--lib/libc/crypt/arc4random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/crypt/arc4random.c b/lib/libc/crypt/arc4random.c
index 4b6cde63fb8..7a2d9e800ab 100644
--- a/lib/libc/crypt/arc4random.c
+++ b/lib/libc/crypt/arc4random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc4random.c,v 1.32 2014/06/13 15:36:37 deraadt Exp $ */
+/* $OpenBSD: arc4random.c,v 1.33 2014/06/13 18:58:58 deraadt Exp $ */
/*
* Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -79,8 +79,8 @@ _rs_stir(void)
{
u_char rnd[KEYSZ + IVSZ];
- if (getentropy(rnd, sizeof rnd) == -1)
- abort();
+ /* XXX */
+ (void) getentropy(rnd, sizeof rnd);
if (!rs_initialized) {
rs_initialized = 1;