summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2009-12-15 18:19:06 +0000
committerguenther <guenther@openbsd.org>2009-12-15 18:19:06 +0000
commit2e3c4f77c2f48673e3d81b0a74cbb148c232efc3 (patch)
treec60548c41bd21df962d0399f9f93b5583309d1e4 /lib/libc/stdlib/malloc.c
parentback out previous fix, apparently neither art or i can fix anything right on the first try (diff)
downloadwireguard-openbsd-2e3c4f77c2f48673e3d81b0a74cbb148c232efc3.tar.xz
wireguard-openbsd-2e3c4f77c2f48673e3d81b0a74cbb148c232efc3.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 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions