aboutsummaryrefslogtreecommitdiff
path: root/rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'rng.h')
-rw-r--r--rng.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/rng.h b/rng.h
index 9ce2abd..b11eef4 100644
--- a/rng.h
+++ b/rng.h
@@ -9,26 +9,6 @@ public:
virtual uint32_t get_uniform(uint32_t upbound)=0;
};
-class KeyRng : public Rng{
- uint8_t *key;
- int keylen;
- int idx;
- uint64_t state;
-
- 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();
-
- uint32_t get();
- uint32_t get_uniform(uint32_t upbound);
-};
-
class CryptoRng : public Rng{
public:
uint32_t get();