summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-03-02 11:38:20 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2018-03-13 12:54:18 +0000
commit4d4c63acbafee9e6c46bd1e4b401a807a7692706 (patch)
tree63301489e82fc4828ad8f448b63e72cf48fca1c1 /src
parenta060ee2802c72d8ce22f42635d1740bf2f84bed7 (diff)
Remove needless #include <sys/random.h> from qrandom.cpp
Tripped over by Alexei Fedotov and brought to light on the developer list; Thiago says it's a left-over from before reworking to actually use getentropy() instead of getrandom(); it should no longer be needed. Change-Id: Id09b0628e58fa62170a0f0da35b2b121f3fb0172 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qrandom.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp
index 9143e04d45..ebf9864b15 100644
--- a/src/corelib/global/qrandom.cpp
+++ b/src/corelib/global/qrandom.cpp
@@ -48,9 +48,7 @@
#include <errno.h>
-#if QT_CONFIG(getentropy)
-# include <sys/random.h>
-#elif !defined(Q_OS_BSD4) && !defined(Q_OS_WIN)
+#if !QT_CONFIG(getentropy) && !defined(Q_OS_BSD4) && !defined(Q_OS_WIN)
# include "qdeadlinetimer.h"
# include "qhashfunctions.h"