aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/cryptoapi_rng
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 11:12:22 +0200
committerSimon Warta <[email protected]>2015-06-27 10:57:40 +0200
commitfdc1fba275933dfccc347774f9c13c1c6253113a (patch)
tree473f09e63fcb17fe5050d3e76fa9c8a9c68527ed /src/lib/entropy/cryptoapi_rng
parent9f8f8bc3951f3b9a8da871b5e5ee0a75be0bace2 (diff)
lib/entropy: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/entropy/cryptoapi_rng')
-rw-r--r--src/lib/entropy/cryptoapi_rng/es_capi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/entropy/cryptoapi_rng/es_capi.cpp b/src/lib/entropy/cryptoapi_rng/es_capi.cpp
index 2c86152ad..019b55a10 100644
--- a/src/lib/entropy/cryptoapi_rng/es_capi.cpp
+++ b/src/lib/entropy/cryptoapi_rng/es_capi.cpp
@@ -63,9 +63,9 @@ void Win32_CAPI_EntropySource::poll(Entropy_Accumulator& accum)
{
CSP_Handle csp(prov_types[i]);
- if(size_t got = csp.gen_random(&m_buf[0], m_buf.size()))
+ if(size_t got = csp.gen_random(m_buf.data(), m_buf.size()))
{
- accum.add(&m_buf[0], got, 6);
+ accum.add(m_buf.data(), got, 6);
break;
}
}