aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/proc_walk/proc_walk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/entropy/proc_walk/proc_walk.cpp')
-rw-r--r--src/lib/entropy/proc_walk/proc_walk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/entropy/proc_walk/proc_walk.cpp b/src/lib/entropy/proc_walk/proc_walk.cpp
index 1501f0774..217ed5a52 100644
--- a/src/lib/entropy/proc_walk/proc_walk.cpp
+++ b/src/lib/entropy/proc_walk/proc_walk.cpp
@@ -133,11 +133,11 @@ void ProcWalking_EntropySource::poll(Entropy_Accumulator& accum)
break;
}
- ssize_t got = ::read(fd, &m_buf[0], m_buf.size());
+ ssize_t got = ::read(fd, m_buf.data(), m_buf.size());
::close(fd);
if(got > 0)
- accum.add(&m_buf[0], got, ENTROPY_ESTIMATE);
+ accum.add(m_buf.data(), got, ENTROPY_ESTIMATE);
if(accum.polling_finished())
break;