Re: RFC/PATCH: Random pid generation

Helge Hafting (helgehaf@idb.hist.no)
Tue, 11 Jan 2000 10:07:40 +0100


> Short summary:
> More and more programs (eg
> CGI-Scripts) use the PID as pseudo-random number.
> As this isn't really
> random and easily guessed from the outside (esp. with
> daemons loaded while
> booting) it's a little bit troublesome.

Seems to me these programs needs fixing then!

You usually don't need a pseudo-random generator
at all, because you can get better random numbers
from /dev/random (or /dev/urandom) anyway.

If you really need a seed for a repeatable
pseudo-random generator, consider pulling the seed from
/dev/random.

Helge Hafting

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/