diff options
author | Jack Lloyd <[email protected]> | 2016-03-05 13:10:30 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-03-05 13:10:30 -0500 |
commit | a3ce0bd1e9e018ea69741c4380bf065cccedec93 (patch) | |
tree | 71eac335b7bdc3a845b1d6599b78e337ad00433c /src/tests/test_rng.h | |
parent | 2467ccccd48fc502ee3e04d847d514e88d88b144 (diff) | |
parent | c3540ae668a523c0155677c4ee4c9099910110bc (diff) |
Make almost all single argument constructors `explicit`
GH #444
Diffstat (limited to 'src/tests/test_rng.h')
-rw-r--r-- | src/tests/test_rng.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_rng.h b/src/tests/test_rng.h index f168a07db..f7b0bf6fe 100644 --- a/src/tests/test_rng.h +++ b/src/tests/test_rng.h @@ -49,12 +49,12 @@ class Fixed_Output_RNG : public Botan::RandomNumberGenerator void clear() throw() override {} - Fixed_Output_RNG(const std::vector<uint8_t>& in) + explicit Fixed_Output_RNG(const std::vector<uint8_t>& in) { m_buf.insert(m_buf.end(), in.begin(), in.end()); } - Fixed_Output_RNG(const std::string& in_str) + explicit Fixed_Output_RNG(const std::string& in_str) { std::vector<uint8_t> in = Botan::hex_decode(in_str); m_buf.insert(m_buf.end(), in.begin(), in.end()); |