aboutsummaryrefslogtreecommitdiffstats
path: root/checks/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'checks/common.h')
-rw-r--r--checks/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/common.h b/checks/common.h
index 493e2fc74..6b504c454 100644
--- a/checks/common.h
+++ b/checks/common.h
@@ -69,12 +69,12 @@ class Fixed_Output_RNG : public Botan::RandomNumberGenerator
Fixed_Output_RNG(const Botan::SecureVector<byte>& in)
{
- buf.insert(buf.end(), in.begin(), in.begin() + in.size());
+ buf.insert(buf.end(), in.begin(), in.end());
}
Fixed_Output_RNG(const std::string& in_str)
{
Botan::SecureVector<byte> in = Botan::hex_decode(in_str);
- buf.insert(buf.end(), in.begin(), in.begin() + in.size());
+ buf.insert(buf.end(), in.begin(), in.end());
}
Fixed_Output_RNG() {}