CVSROOT: /cvs Module name: src Changes by: chel...@cvs.openbsd.org 2022/07/23 16:10:59
Modified files: sys/kern : kern_fork.c init_main.c sys/sys : proc.h Log message: kernel: remove global "randompid" toggle Apparently, we used to created several kthreads before the kernel random number generator was up and running. A toggle, "randompid", was needed to tell allocpid() whether it made sense to attempt to allocate random PIDs. However, these days we get e.g. arc4random(9) into a working state before any kthreads are spawned, so the toggle is no longer needed. Thread: https://marc.info/?l=openbsd-tech&m=165541052614453&w=2 Very nice historical context provided by miod@. probably ok miod@ deraadt@