OpenBSD spawns each new process with a random, unused PID. This protects the user from attacks that predict new PIDs.
Details:
- this feature first appeared in OpenBSD 2.1
- CVS log for src/sys/kern/kern_fork.c
- operating systems - Do randomized PIDs bring more security? - Information Security Stack Exchange