diff options
author | guenther <> | 2009-12-15 18:19:06 +0000 |
---|---|---|
committer | guenther <> | 2009-12-15 18:19:06 +0000 |
commit | 0ac52e6e4d02749d85405ea08400d4b7e6db2ca1 (patch) | |
tree | 4f708f2e07feb88d20f5fc86fd6a5b8aaaa620f7 /src/lib/libc/net/nsap_addr.c | |
parent | e0fd73fcca39e03d57dc0a553e943e84cda61e30 (diff) | |
download | openbsd-0ac52e6e4d02749d85405ea08400d4b7e6db2ca1.tar.gz openbsd-0ac52e6e4d02749d85405ea08400d4b7e6db2ca1.tar.bz2 openbsd-0ac52e6e4d02749d85405ea08400d4b7e6db2ca1.zip |
No point in refreshing the pid from inside arc4_stir() when that
doesn't test it, so factor out the two places that test it into a
routine and do the refreshing there. With this, arch4random_buf()
doesn't trigger superfluous calls to getpid() when filling large
buffers.
ok deraadt@, "looks nicer indeed" otto@
Diffstat (limited to 'src/lib/libc/net/nsap_addr.c')
0 files changed, 0 insertions, 0 deletions