aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy
diff options
context:
space:
mode:
Diffstat (limited to 'src/entropy')
-rw-r--r--src/entropy/cryptoapi_rng/es_capi.cpp4
-rw-r--r--src/entropy/dev_random/dev_random.cpp4
-rw-r--r--src/entropy/egd/es_egd.cpp4
-rw-r--r--src/entropy/proc_walk/es_ftw.cpp4
-rw-r--r--src/entropy/unix_procs/es_unix.cpp2
5 files changed, 9 insertions, 9 deletions
diff --git a/src/entropy/cryptoapi_rng/es_capi.cpp b/src/entropy/cryptoapi_rng/es_capi.cpp
index 367166c62..f3a94ad34 100644
--- a/src/entropy/cryptoapi_rng/es_capi.cpp
+++ b/src/entropy/cryptoapi_rng/es_capi.cpp
@@ -61,11 +61,11 @@ void Win32_CAPI_EntropySource::poll(Entropy_Accumulator& accum)
{
CSP_Handle csp(prov_types[j]);
- u32bit got = csp.gen_random(io_buffer.begin(), io_buffer.size());
+ u32bit got = csp.gen_random(&io_buffer[0], io_buffer.size());
if(got)
{
- accum.add(io_buffer.begin(), io_buffer.size(), 8);
+ accum.add(&io_buffer[0], io_buffer.size(), 8);
break;
}
}
diff --git a/src/entropy/dev_random/dev_random.cpp b/src/entropy/dev_random/dev_random.cpp
index d0babfd1e..a942806d0 100644
--- a/src/entropy/dev_random/dev_random.cpp
+++ b/src/entropy/dev_random/dev_random.cpp
@@ -111,12 +111,12 @@ void Device_EntropySource::poll(Entropy_Accumulator& accum)
for(size_t i = 0; i != devices.size(); ++i)
{
- u32bit got = devices[i].get(io_buffer.begin(), io_buffer.size(),
+ u32bit got = devices[i].get(&io_buffer[0], io_buffer.size(),
read_wait_ms);
if(got)
{
- accum.add(io_buffer.begin(), got, 8);
+ accum.add(&io_buffer[0], got, 8);
break;
}
}
diff --git a/src/entropy/egd/es_egd.cpp b/src/entropy/egd/es_egd.cpp
index 29880a544..7efcf204d 100644
--- a/src/entropy/egd/es_egd.cpp
+++ b/src/entropy/egd/es_egd.cpp
@@ -143,11 +143,11 @@ void EGD_EntropySource::poll(Entropy_Accumulator& accum)
for(size_t i = 0; i != sockets.size(); ++i)
{
- u32bit got = sockets[i].read(io_buffer.begin(), io_buffer.size());
+ u32bit got = sockets[i].read(&io_buffer[0], io_buffer.size());
if(got)
{
- accum.add(io_buffer.begin(), got, 8);
+ accum.add(&io_buffer[0], got, 8);
break;
}
}
diff --git a/src/entropy/proc_walk/es_ftw.cpp b/src/entropy/proc_walk/es_ftw.cpp
index 53e39d834..ce359f03f 100644
--- a/src/entropy/proc_walk/es_ftw.cpp
+++ b/src/entropy/proc_walk/es_ftw.cpp
@@ -146,11 +146,11 @@ void FTW_EntropySource::poll(Entropy_Accumulator& accum)
break;
}
- ssize_t got = ::read(fd, io_buffer.begin(), io_buffer.size());
+ ssize_t got = ::read(fd, &io_buffer[0], io_buffer.size());
::close(fd);
if(got > 0)
- accum.add(io_buffer.begin(), got, .01);
+ accum.add(&io_buffer[0], got, .01);
if(accum.polling_goal_achieved())
break;
diff --git a/src/entropy/unix_procs/es_unix.cpp b/src/entropy/unix_procs/es_unix.cpp
index 5756f93dd..8c6e097c7 100644
--- a/src/entropy/unix_procs/es_unix.cpp
+++ b/src/entropy/unix_procs/es_unix.cpp
@@ -106,7 +106,7 @@ void Unix_EntropySource::poll(Entropy_Accumulator& accum)
u32bit got_this_loop = pipe.read(io_buffer, io_buffer.size());
got_from_src += got_this_loop;
- accum.add(io_buffer.begin(), got_this_loop, .005);
+ accum.add(&io_buffer[0], got_this_loop, .005);
}
sources[j].working = (got_from_src >= MINIMAL_WORKING) ? true : false;