|
|
|
|
|
by ushi
4226 days ago
|
|
getrandom() is a generic interface you can use to implement getentropy(), which is used to seed arc4random(). It is not an alternative arc4random implementation... From the OpenBSD Manpage: getentropy() will succeed unless:
[EFAULT]
The buf parameter points to an invalid address.
[EIO]
Too many bytes requested, or some other fatal error occurred.
See: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/... |
|
http://lwn.net/Articles/606552/
Note the magical 256 number. It's important.