aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_rng.h
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-07-30 19:30:09 +0200
committerDaniel Seither <[email protected]>2015-07-30 19:30:09 +0200
commitc37ebd2d0bb9ad6d2cf6d4541a1de523b584b36e (patch)
treea112526de3c662b71bfe323f4f025b4879f6d98c /src/tests/test_rng.h
parent313b1b4e75d8ee6f1d271f7de2e21facb85b2c46 (diff)
tests: Add missing overrides
Diffstat (limited to 'src/tests/test_rng.h')
-rw-r--r--src/tests/test_rng.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/test_rng.h b/src/tests/test_rng.h
index bf4032699..f1d40f7f1 100644
--- a/src/tests/test_rng.h
+++ b/src/tests/test_rng.h
@@ -18,7 +18,7 @@ using Botan::byte;
class Fixed_Output_RNG : public Botan::RandomNumberGenerator
{
public:
- bool is_seeded() const { return !buf.empty(); }
+ bool is_seeded() const override { return !buf.empty(); }
byte random()
{
@@ -30,22 +30,22 @@ class Fixed_Output_RNG : public Botan::RandomNumberGenerator
return out;
}
- void reseed(size_t) {}
+ void reseed(size_t) override {}
- void randomize(byte out[], size_t len)
+ void randomize(byte out[], size_t len) override
{
for(size_t j = 0; j != len; j++)
out[j] = random();
}
- void add_entropy(const byte b[], size_t s)
+ void add_entropy(const byte b[], size_t s) override
{
buf.insert(buf.end(), b, b + s);
}
- std::string name() const { return "Fixed_Output_RNG"; }
+ std::string name() const override { return "Fixed_Output_RNG"; }
- void clear() throw() {}
+ void clear() throw() override {}
Fixed_Output_RNG(const std::vector<byte>& in)
{