From 4fe8a34f1869805d9115f39cad53d1fd7f7eb6c4 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 13 Sep 2010 20:53:31 +0000 Subject: Remove more uses of vector to pointer implicit conversions --- src/sym_algo/symkey.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sym_algo/symkey.cpp') 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); } /* -- cgit v1.2.3