Re: Crypt salts not random.. (fwd)
| From: | Jani Taskinen | Date: | Sun, 29 Apr 2001 08:44:45 +0000 |
| Subject: | Re: Crypt salts not random.. (fwd) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52834@lists.php.net to get a copy of this message | ||
On Fri, 27 Apr 2001, Andi Gutmans wrote:
>Oh OK now I understand. The problem is that MINIT is called before Apache
>forks and then all children start from the same number. However, calling it
>during each request init is also a bit of an overkill and slows down each
>request. Calling it once should be enough so maybe RINIT should check if
>this is the first time RINIT is called and if it is then initialize the
>random number generator.
With attached patch I (seem to) get random salts now.
Please check it out.
--Jani