On Mon, Jan 07, 2019 at 08:15:12AM +0100, Ole Tange wrote: > On Mon, Jan 7, 2019 at 12:08 AM Chet Ramey <chet.ra...@case.edu> wrote: > > > > On 1/5/19 3:12 PM, Eduardo A. Bustamante López wrote: > > > On Fri, Dec 28, 2018 at 10:24:50AM +0100, Ole Tange wrote: > > > (...) > > >> Patch attached. > : > > > - Does the new RNG generate uniformly distributed numbers? (Yes) > > > - What is the performance impact (roughly 2X slower) > > The impact is not from Salsa20/ChaCha20, though, if you compare > patched vs. unpatched code. > > On my system BASH_RANDOM_16 is a tiny bit faster than the original, > while BASH_RANDOM_32 is a tiny bit slower.
I find that really hard to believe. The new RNG is clearly doing more work, so it should be slower. And that's OK. I just wanted to know by how much. What numbers are you seeing and how did you measure them?