Subject: Re: Random PID'
To: None <thorpej@zembu.com>
From: Simon Burge <simonb@wasabisystems.com>
List: current-users
Date: 11/13/2000 12:34:28
Jason R Thorpe wrote:

> On Sun, Nov 12, 2000 at 04:54:32PM +0100, Johan Danielsson wrote:
> 
>  > Why not just use the proc address as pid?
> 
> pid_t's are signed.  But it would not be a bad idea to try and
> do that.

How is proc address allocation done?  LRU?  Just thinking of repeating
monte carlo similutions that run in less than a second that do

	srandom(time(NULL) ^ getpid());

and ending up with the same result :-)

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Sales, Support and Service:  http://www.wasabisystems.com/