Current behaviour
When kern.randompid is enabled via the the bsdinstall(8) hardening menu, a random value is generated and placed in the systems /etc/sysctl.conf as kern.randompid=value
This makes the value of kern.randompid be static across reboots.
New behaviour
When kern.randompid is enabled via the bsdinstall(8) hardening menu, the line kern.randompid=1 is placed in the systems /etc/sysctl.conf.
This makes the value of kern.randompid be randomized on each reboot.
Suggested commit message
Enabling PID randomization in bsdinstall(8)'s hardening menu now randomizes the effective value of kern.randompid on each boot.
Submitted by Marie Helene Kvello-Aune <marieheleneka@gmail.com>
Differential revision https://reviews.freebsd.org/D12433