Commit a8f3fe74 authored by Philipp Schafft's avatar Philipp Schafft 🦁 Committed by Philipp Schafft
Browse files

Fix: Corrected maximum accounted entropy for igloo_prng_write(bits==-1)

parent 97b84a11
......@@ -332,7 +332,7 @@ igloo_error_t igloo_prng_write(igloo_ro_t instance, const void *buffer, size_t l
ssize_t ent = igloo_prng_estimate_bits(buffer, len);
bits = (len * 8) / 32;
if (ent > 0 && bits > ent)
if (ent >= 0 && bits > ent)
bits = ent;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment