aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/RandomStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rdr/RandomStream.cxx')
-rw-r--r--common/rdr/RandomStream.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/common/rdr/RandomStream.cxx b/common/rdr/RandomStream.cxx
index 3a524102..9784c220 100644
--- a/common/rdr/RandomStream.cxx
+++ b/common/rdr/RandomStream.cxx
@@ -20,9 +20,11 @@
#include <config.h>
#endif
+#include <core/Exception.h>
+#include <core/LogWriter.h>
+
#include <rdr/RandomStream.h>
-#include <rdr/Exception.h>
-#include <rfb/LogWriter.h>
+
#include <time.h>
#include <stdlib.h>
#ifndef WIN32
@@ -35,7 +37,7 @@
#endif
#endif
-static rfb::LogWriter vlog("RandomStream");
+static core::LogWriter vlog("RandomStream");
using namespace rdr;
@@ -89,7 +91,7 @@ bool RandomStream::fillBuffer() {
#ifdef RFB_HAVE_WINCRYPT
if (provider) {
if (!CryptGenRandom(provider, availSpace(), (uint8_t*)end))
- throw rdr::win32_error("Unable to CryptGenRandom", GetLastError());
+ throw core::win32_error("Unable to CryptGenRandom", GetLastError());
end += availSpace();
} else {
#else
@@ -97,8 +99,8 @@ bool RandomStream::fillBuffer() {
if (fp) {
size_t n = fread((uint8_t*)end, 1, availSpace(), fp);
if (n <= 0)
- throw rdr::posix_error("Reading /dev/urandom or /dev/random "
- "failed", errno);
+ throw core::posix_error(
+ "Reading /dev/urandom or /dev/random failed", errno);
end += n;
} else {
#else