summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLandry Breuil <landry@openbsd.org>2018-05-21 00:10:00 +0200
committerLandry Breuil <landry@openbsd.org>2018-05-21 00:10:00 +0200
commit558eaad88f6be4934d55a7199f44039fd226be37 (patch)
tree5578780b0963639c680f19b8971981401e7a2bf3
parent7b4298ed1c26fe1116222af2e07f9121811e89d9 (diff)
downloadnss-hg-558eaad88f6be4934d55a7199f44039fd226be37.tar.gz
Bug 1461075 - use getentropy() on OpenBSD, r=franziskus
-rw-r--r--lib/freebl/unix_urandom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/freebl/unix_urandom.c b/lib/freebl/unix_urandom.c
index 4c65d8fe5..869a5ed8c 100644
--- a/lib/freebl/unix_urandom.c
+++ b/lib/freebl/unix_urandom.c
@@ -32,7 +32,7 @@ RNG_SystemRNG(void *dest, size_t maxLen)
size_t fileBytes = 0;
unsigned char *buffer = dest;
-#if defined(LINUX) && defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 25)))
+#if defined(__OpenBSD__) || (defined(LINUX) && defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 25))))
int result;
while (fileBytes < maxLen) {