aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/RandomStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rdr/RandomStream.h')
-rw-r--r--common/rdr/RandomStream.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/common/rdr/RandomStream.h b/common/rdr/RandomStream.h
index 80b389b2..08ae0ff6 100644
--- a/common/rdr/RandomStream.h
+++ b/common/rdr/RandomStream.h
@@ -20,7 +20,7 @@
#define __RDR_RANDOMSTREAM_H__
#include <stdio.h>
-#include <rdr/InStream.h>
+#include <rdr/BufferedInStream.h>
#ifdef WIN32
#include <windows.h>
@@ -32,22 +32,17 @@
namespace rdr {
- class RandomStream : public InStream {
+ class RandomStream : public BufferedInStream {
public:
RandomStream();
virtual ~RandomStream();
- size_t pos();
-
- protected:
- size_t overrun(size_t itemSize, size_t nItems, bool wait);
-
private:
- U8* start;
- size_t offset;
+ virtual bool fillBuffer(size_t maxSize, bool wait);
+ private:
static unsigned int seed;
#ifdef RFB_HAVE_WINCRYPT
HCRYPTPROV provider;