aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-07-13 22:03:58 +0000
committerlloyd <[email protected]>2008-07-13 22:03:58 +0000
commitb6f259d9c6762b5883663a90bbbc4c34cf1748f3 (patch)
treea77a8b7949606021b482361584299608bf1cb3c0 /include
parent1bfd8453556cc510ae762c2c69dea0db086cb89d (diff)
Disable synthesized copy constructor and assignment operator for
RandomNumberGenerator (really hate C++ sometimes...)
Diffstat (limited to 'include')
-rw-r--r--include/rng.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rng.h b/include/rng.h
index e09a3e939..54235ddea 100644
--- a/include/rng.h
+++ b/include/rng.h
@@ -40,6 +40,10 @@ class BOTAN_DLL RandomNumberGenerator
virtual void add_entropy(const byte[], u32bit) = 0;
virtual ~RandomNumberGenerator() {}
+ private:
+ RandomNumberGenerator(const RandomNumberGenerator&) {}
+ RandomNumberGenerator& operator=(const RandomNumberGenerator&)
+ { return (*this); }
};
/*************************************************