diff options
author | Jack Lloyd <[email protected]> | 2017-09-22 10:56:25 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-22 10:56:25 -0400 |
commit | 2610d170e73b3e1f94c35de75f6c25cea52ef7d5 (patch) | |
tree | 9c60bb607340eb79dace57184ed67145a478cfa4 /src/tests/test_rng.h | |
parent | dc24f117eca49214d45582c83d2b8ddcc2c81704 (diff) |
Add final annotations as appropriate in the test code
Diffstat (limited to 'src/tests/test_rng.h')
-rw-r--r-- | src/tests/test_rng.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_rng.h b/src/tests/test_rng.h index e3ae4af9b..77ae2ba1a 100644 --- a/src/tests/test_rng.h +++ b/src/tests/test_rng.h @@ -93,7 +93,7 @@ class Fixed_Output_RNG : public Botan::RandomNumberGenerator * RNG that outputs a given set of fixed bytes for a specific request count, outputs random otherwise. * Useful for test vectors with fixed nonces, where the algorithm consumes more random than just the fixed nonce. */ -class Fixed_Output_Position_RNG : public Fixed_Output_RNG +class Fixed_Output_Position_RNG final : public Fixed_Output_RNG { public: bool is_seeded() const override @@ -155,7 +155,7 @@ class Fixed_Output_Position_RNG : public Fixed_Output_RNG uint32_t m_requests = 0; }; -class SeedCapturing_RNG : public Botan::RandomNumberGenerator +class SeedCapturing_RNG final : public Botan::RandomNumberGenerator { public: void randomize(uint8_t[], size_t) override @@ -198,7 +198,7 @@ class SeedCapturing_RNG : public Botan::RandomNumberGenerator * RNG that counts the number of requests made to it, for example * to verify that a reseed attempt was made at the expected time. */ -class Request_Counting_RNG : public Botan::RandomNumberGenerator +class Request_Counting_RNG final : public Botan::RandomNumberGenerator { public: Request_Counting_RNG() : m_randomize_count(0) {} |