aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/msg_client_hello.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 18:29:16 +0200
committerSimon Warta <[email protected]>2015-06-23 18:49:20 +0200
commite4cfc6684df02e1c1c2b583c764514cfc08e9c39 (patch)
treee8bc73070ddb9cb38594e114e28f4fa1129545f8 /src/lib/tls/msg_client_hello.cpp
parentfcb249320e9529c772fde21195659cc81cb57c73 (diff)
lib/tls: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/tls/msg_client_hello.cpp')
-rw-r--r--src/lib/tls/msg_client_hello.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/msg_client_hello.cpp b/src/lib/tls/msg_client_hello.cpp
index 8b75e93d6..82ba6f4f6 100644
--- a/src/lib/tls/msg_client_hello.cpp
+++ b/src/lib/tls/msg_client_hello.cpp
@@ -25,14 +25,14 @@ std::vector<byte> make_hello_random(RandomNumberGenerator& rng,
const Policy& policy)
{
std::vector<byte> buf(32);
- rng.randomize(&buf[0], buf.size());
+ rng.randomize(buf.data(), buf.size());
if(policy.include_time_in_hello_random())
{
const u32bit time32 = static_cast<u32bit>(
std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()));
- store_be(time32, &buf[0]);
+ store_be(time32, buf.data());
}
return buf;