diff options
author | lloyd <[email protected]> | 2010-09-13 20:53:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-13 20:53:31 +0000 |
commit | 4fe8a34f1869805d9115f39cad53d1fd7f7eb6c4 (patch) | |
tree | 2ff6c30d1a7d5f2244b6f1b459a5ea10b6d43fe0 /src/sym_algo/symkey.cpp | |
parent | 36bfef27271eadffefbc6891a9d7fa7eed7b1e10 (diff) |
Remove more uses of vector to pointer implicit conversions
Diffstat (limited to 'src/sym_algo/symkey.cpp')
-rw-r--r-- | src/sym_algo/symkey.cpp | 3 |
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); } /* |