I've written a patch against linux-2.[2.18|4.1]/kernel/fork.c to have the linux-kernel
generate random PIDs instead of the n+1 method as it's doing now.
Follow this link to get to the download-location: /Linux/kernel_patches.php
There is a also a FAQ 21/02/2001: Beware: I did not dare to test it :o) USE AT YOUR OWN RISK! Please let me now if it worked or not. 26/02/2001: I took the time to compile it, and found that it doesn't even compile :o) The fix is rather simple and anyone with a little C-experience can fix it. At the moment I'm enhancing the patch with code which prevents re-usage of a PID to soon. ??/03/2001: Fixed the patch. It is now available for 2.2.19. I've tested it on a Dec Alpha.
audio-entropyd retrieves random values from a soundcard and adds them to the entropy-pool of the /dev/random-device. video-entropyd retrieves random values from a video4linux device and adds them to the entropy-pool of the /dev/random-device.
The defaultsize of the entropy-pool is about 4KB. By changing line 263 of
#define POOLWORDS 128 /* Power of 2 - note that this is 32-bit words */
#define POOLWORDS 2048 /* Power of 2 - note that this is 32-bit words */
this entropy-pool is enlarged to about 64KB. This is a good thing.
Note: Linux kernel >= 2.4.x has /proc-entries for controlling the entropy-poolsize.