Re: RFC/PATCH: Random pid generation

From: Miquel van Smoorenburg (miquels@cistron.nl)
Date: Mon Jan 10 2000 - 19:16:11 EST


In article <cistron.3.0.6.32.20000110082554.009eca80@pop3.bmlv.gv.at>,
Ph. Marek <marek@mail.bmlv.gv.at> wrote:
>My patch allows some kind of
>modification to the current routing which just
>increments the last pid
>until a free pid is found.
>
>Possible are
>- last_pid+1 (as before);
>-
>complete random (entropy pool);
>- low and/or high byte randomness added;
>-
>multiply last_pid with prime, add another prime;
>- pseudo-random.

Did you make sure that a recently used PID is not re-used immidiately?
Many programs depend on that behaviour.

BTW, the uuencoded part was munged by some email gateway between
you and the linux-kernel mailing list server.

Mike.

-- 
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to miquels@cistron.nl (Miquel van Smoorenburg)

- 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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:16 EST