RE: [PHP-DEV] Re: Crypt salts not random.. (fwd) From: James Moore (jmoore <email protected>)
Date: 04/29/01

> > > In order to avoid this you actually have to call it at completely
> > different
> > > times, something you can't really guarantee. We should
> probably not use
> > > the timestamp as the seed (at least not alone), but also take
> the pid into
> > > account.
> > >
> > > Zeev
> > >
> >
> >That only really works for forking webservers, does it not? Another
> >alternative
> >would be to use microseconds...
>
> Yeah we could use microseconds but are they available on all platforms?
> In any case, on non-forking servers we can use thread id.

We have accuracy to milliseconds only on Win32.

- James

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>