diff options
author | pjd <pjd@FreeBSD.org> | 2012-07-04 19:51:25 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-07-04 19:51:25 +0000 |
commit | 8cbf06904c76a2c9ed6b6e796cc669bb7b92e090 (patch) | |
tree | d0dad201d7d17d8750958079b6795c4eed40e39a /include/pwd.h | |
parent | 860961ab47e87d7fdd9b6940ef70346e37f33708 (diff) | |
download | FreeBSD-src-8cbf06904c76a2c9ed6b6e796cc669bb7b92e090.zip FreeBSD-src-8cbf06904c76a2c9ed6b6e796cc669bb7b92e090.tar.gz |
Prefer sysctl to open/read/close for obtaining random data.
This method is more sandbox-friendly and also should be faster as only
one syscall is needed instead of three.
In case of an error fall back to the old method.
Reviewed by: simon, gleb
MFC after: 2 weeks
Diffstat (limited to 'include/pwd.h')
0 files changed, 0 insertions, 0 deletions