diff options
| author | guenther <> | 2009-12-15 18:19:06 +0000 |
|---|---|---|
| committer | guenther <> | 2009-12-15 18:19:06 +0000 |
| commit | 00c7062e7072458762b2f2f8518512cd1dfc4f9b (patch) | |
| tree | 4f708f2e07feb88d20f5fc86fd6a5b8aaaa620f7 /src/lib/libc/stdlib/malloc.c | |
| parent | d44f171a9a8a7c074bb641bdb21e3d5a471086ad (diff) | |
| download | openbsd-00c7062e7072458762b2f2f8518512cd1dfc4f9b.tar.gz openbsd-00c7062e7072458762b2f2f8518512cd1dfc4f9b.tar.bz2 openbsd-00c7062e7072458762b2f2f8518512cd1dfc4f9b.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/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions
