diff options
author | Simon Warta <[email protected]> | 2015-06-26 11:12:22 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-27 10:57:40 +0200 |
commit | fdc1fba275933dfccc347774f9c13c1c6253113a (patch) | |
tree | 473f09e63fcb17fe5050d3e76fa9c8a9c68527ed /src/lib/entropy/dev_random | |
parent | 9f8f8bc3951f3b9a8da871b5e5ee0a75be0bace2 (diff) |
lib/entropy: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/entropy/dev_random')
-rw-r--r-- | src/lib/entropy/dev_random/dev_random.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/entropy/dev_random/dev_random.cpp b/src/lib/entropy/dev_random/dev_random.cpp index b115e0da2..526835fea 100644 --- a/src/lib/entropy/dev_random/dev_random.cpp +++ b/src/lib/entropy/dev_random/dev_random.cpp @@ -87,9 +87,9 @@ void Device_EntropySource::poll(Entropy_Accumulator& accum) { if(FD_ISSET(m_devices[i], &read_set)) { - const ssize_t got = ::read(m_devices[i], &m_buf[0], m_buf.size()); + const ssize_t got = ::read(m_devices[i], m_buf.data(), m_buf.size()); if(got > 0) - accum.add(&m_buf[0], got, ENTROPY_BITS_PER_BYTE); + accum.add(m_buf.data(), got, ENTROPY_BITS_PER_BYTE); } } } |