tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: getrandom and getentropy

For the previous discussion about it:

This discussion calls for only having one interface, the
getrandom(...,0) one, which is the path other operating systems
took with their /dev/{,u}random.

The getrandom interface intentionally traps people to make questionable
design choices.
We might immediately take

And re-write bits about /dev/random as being about getrandom(...,GRND_RANDOM).

Calling it "/dev/random" behaviour is ambiguous. Didn't you fix
/dev/random to not have this limitation, and be more like

Having compat shims in libc is as good as having compat shims in syscall
because it isn't possible to share raw syscall code between NetBSD and
other operating systems -- our calling convention is different.

Home | Main Index | Thread Index | Old Index