From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: RADIUS authentication |
Date: | 2010-01-19 16:38:13 |
Message-ID: | 11586.1263919093@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Magnus Hagander <magnus(at)hagander(dot)net> writes:
> 2010/1/18 KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>:
>> The random seed is initialized at BackendRun() with MyProcPid and
>> the time of backend process launched.
>> Then, PostgresMain() -> InitPostgres() -> PerformAuthentication()
>> will be called, and this random() shall be the first call just after
>> initialization of the srandom().
> Maybe switching to erand48() would make this better, and good enough?
Wouldn't help in the least. The problem is not the RNG itself but lack
of an adequately unpredictable random seed, and anything you do here
is unlikely to be more random than what we already arranged for.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-01-19 16:43:10 | Re: Patch: Remove gcc dependency in definition of inline functions |
Previous Message | Tom Lane | 2010-01-19 16:12:56 | Re: Bug ? different behaviour between 8.3 and 8.4 won IS NULL with sub arrays of nulls |