diff options
author | peter <peter@FreeBSD.org> | 1999-12-06 11:13:50 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-06 11:13:50 +0000 |
commit | 83c2cea457cac2b346ef3a30ddfdaaa5a9115e2d (patch) | |
tree | 80c61d89f27097e8ea1db95aac311f47fcaaa9fb /sys/kern/kern_sig.c | |
parent | c9bb2498127a16c9c6ec0a3beb4fe38e1dac553d (diff) | |
download | FreeBSD-src-83c2cea457cac2b346ef3a30ddfdaaa5a9115e2d.zip FreeBSD-src-83c2cea457cac2b346ef3a30ddfdaaa5a9115e2d.tar.gz |
Put on my asbestos underwear and commit the patch that I posted to -arch
some time ago that changes kern.randompid from a boolean to a randomness
range for the next pid assigment. Too high causes a lot of extra work
to scan for free pids, and too low merely wastes randomness entropy. It's
still possible to select a completely random range by using PID_MAX (100k)
or -1 as a shortcut to mean "the whole range".
Also, don't waste randomness when doing a wraparound.
Diffstat (limited to 'sys/kern/kern_sig.c')
0 files changed, 0 insertions, 0 deletions