aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/rng.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 18:59:02 +0200
committerSimon Warta <[email protected]>2015-06-23 18:59:02 +0200
commit28b2beef62d4b465193659545e857f253d59f817 (patch)
tree05f6a67bd364c04f9e71ee2b6e8e3ac0bcf9be1c /src/lib/rng/rng.h
parent9a841344acb1844082a0e46c26f91b4f50af86dd (diff)
lib/rng: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/rng/rng.h')
-rw-r--r--src/lib/rng/rng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/rng.h b/src/lib/rng/rng.h
index 836eb1006..2abd11532 100644
--- a/src/lib/rng/rng.h
+++ b/src/lib/rng/rng.h
@@ -42,7 +42,7 @@ class BOTAN_DLL RandomNumberGenerator
virtual secure_vector<byte> random_vec(size_t bytes)
{
secure_vector<byte> output(bytes);
- randomize(&output[0], output.size());
+ randomize(output.data(), output.size());
return output;
}