summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_autoconf.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-06 11:13:50 +0000
committerpeter <peter@FreeBSD.org>1999-12-06 11:13:50 +0000
commit83c2cea457cac2b346ef3a30ddfdaaa5a9115e2d (patch)
tree80c61d89f27097e8ea1db95aac311f47fcaaa9fb /sys/kern/subr_autoconf.c
parentc9bb2498127a16c9c6ec0a3beb4fe38e1dac553d (diff)
downloadFreeBSD-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/subr_autoconf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud