3 ms·
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/Open
by dchest 7y ago
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/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.