[PATCH v1 1/2] random-bits: Factor out entropy generating function

Jason A. Donenfeld Jason@zx2c4.com
Thu Mar 31 23:25:49 GMT 2022


Hi Noah,

On Thu, Mar 31, 2022 at 7:05 PM Noah Goldstein <goldstein.w.n@gmail.com> wrote:
> > Alright, well, here's something: https://xn--4db.cc/YQOxDP6Z/c
> >
> > This is somewhat "secure", and maybe overkill.
>
> AFAIK our goal is entropy more so than security. For example
> if this is used to generate jiffies to stagger threads its not a security
> issue in any sense, it's just not ideal for performance.

Oh, okay, well just go with something linear and silly like this:
https://xn--4db.cc/xrAIhCvy/c (an xorshift generator) No security, but
statistically pretty good, and performs well.

Jason


More information about the Libc-alpha mailing list