Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The interface is the same, but arc4random_buf is a user-space CSPRNG.

The analog of zx_cprng_draw is getentropy(2): http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/... except zx_cprng_draw kills the process, while getentropy returns an error.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: