aboutsummaryrefslogtreecommitdiff
path: root/rng.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-09 21:43:38 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-09 21:43:38 +0200
commitcbea7bc041e5c14670042e3e52f0786f9561af05 (patch)
tree4d646978f1ed984099828a65c92bcee0a72b47dc /rng.h
parentd6dd94c63252ace898d9a60a539c7ab14d69f0ea (diff)
Better error handling (exceptions)
Diffstat (limited to 'rng.h')
-rw-r--r--rng.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rng.h b/rng.h
index e843bbd..9ce2abd 100644
--- a/rng.h
+++ b/rng.h
@@ -18,8 +18,10 @@ class KeyRng : public Rng{
void stir();
public:
+ //throws invalid_argument if keylen<=0
KeyRng(const char *key,int keylen);
explicit KeyRng(const std::string &key);
+
KeyRng(const Rng&)=delete; //just keep it at one KeyRng please
~KeyRng();