diff --git Source/WTF/wtf/RandomDevice.cpp Source/WTF/wtf/RandomDevice.cpp
index 61d6057..90fa30c 100644
--- Source/WTF/wtf/RandomDevice.cpp
+++ Source/WTF/wtf/RandomDevice.cpp
-#if !OS(DARWIN) && OS(UNIX)
-#include <wincrypt.h> // windows.h must be included before wincrypt.h.
-#include "CommonCryptoSPI.h"
-#if !OS(DARWIN) && OS(UNIX)
NEVER_INLINE NO_RETURN_DUE_TO_CRASH static void crashUnableToOpenURandom()
@@ -57,9 +45,7 @@ NEVER_INLINE NO_RETURN_DUE_TO_CRASH static void crashUnableToReadFromURandom()
-#if !OS(DARWIN) && !OS(WINDOWS)
RandomDevice::RandomDevice()
@@ -70,22 +56,16 @@ RandomDevice::RandomDevice()
crashUnableToOpenURandom(); // We need /dev/urandom for this API to work...
-#if !OS(DARWIN) && !OS(WINDOWS)
RandomDevice::~RandomDevice()
// FIXME: Make this call fast by creating the pool in RandomDevice.
// https://bugs.webkit.org/show_bug.cgi?id=170190
void RandomDevice::cryptographicallyRandomValues(unsigned char* buffer, size_t length)
- RELEASE_ASSERT(!CCRandomCopyBytes(kCCRandomDefault, buffer, length));
while (static_cast<size_t>(amountRead) < length) {
ssize_t currentRead = read(m_fd, buffer + amountRead, length - amountRead);
@@ -97,20 +77,6 @@ void RandomDevice::cryptographicallyRandomValues(unsigned char* buffer, size_t l