The unified diff between revisions [7abb6469..] and [411e49ac..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "src/buf_es.cpp"
# from [0662ad86a41b68df7d8ca64b4f8fd944c558fa8f]
# to [cd4e86efa29384aae6f685444297076319ba3490]
#
============================================================
--- src/buf_es.cpp 0662ad86a41b68df7d8ca64b4f8fd944c558fa8f
+++ src/buf_es.cpp cd4e86efa29384aae6f685444297076319ba3490
@@ -36,6 +36,7 @@ u32bit Buffered_EntropySource::slow_poll
u32bit Buffered_EntropySource::slow_poll(byte out[], u32bit length)
{
do_slow_poll();
+ done_slow_poll = true;
return copy_out(out, length, buffer.size());
}
@@ -53,6 +54,7 @@ void Buffered_EntropySource::add_bytes(c
void Buffered_EntropySource::add_bytes(const void* entropy_ptr, u32bit length)
{
const byte* bytes = static_cast<const byte*>(entropy_ptr);
+
while(length)
{
u32bit copied = std::min(length, buffer.size() - write_pos);