aboutsummaryrefslogtreecommitdiffstats
path: root/src/sym_algo/symkey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sym_algo/symkey.cpp')
-rw-r--r--src/sym_algo/symkey.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sym_algo/symkey.cpp b/src/sym_algo/symkey.cpp
index 65eb268cb..c7533d256 100644
--- a/src/sym_algo/symkey.cpp
+++ b/src/sym_algo/symkey.cpp
@@ -20,8 +20,7 @@ namespace Botan {
OctetString::OctetString(RandomNumberGenerator& rng,
u32bit length)
{
- bits.resize(length);
- rng.randomize(bits, length);
+ bits = rng.random_vec(length);
}
/*