diff options
| author | 2009-12-15 18:19:06 +0000 | |
|---|---|---|
| committer | 2009-12-15 18:19:06 +0000 | |
| commit | 2e3c4f77c2f48673e3d81b0a74cbb148c232efc3 (patch) | |
| tree | c60548c41bd21df962d0399f9f93b5583309d1e4 /lib/libc/stdlib/malloc.c | |
| parent | back out previous fix, apparently neither art or i can fix anything right on the first try (diff) | |
| download | wireguard-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
