tech-userlevel archive

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

Re: getrandom and getentropy



On Sat, May 02, 2020 at 02:27:31PM +0200, Martin Husemann wrote:
> On Sat, May 02, 2020 at 12:22:20PM +0000, maya%NetBSD.org@localhost wrote:
> > 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.
> 
> I can't parse that - a "compat shim" here would be something like
> a getrandom() function implemented by doing sysctl kern.arandom.
> 
> Helps everything expecting the getrandom() API and using libc, does not
> help go or rust.
> 

I am under the impression Rust uses libc.

Another way to say it is:
"I think Go is the main thing that has the possibility of benefitting
from it, and I still don't think I'll be able to take advantage of it in
Go. Please ignore this use-case."


Home | Main Index | Thread Index | Old Index