| От | Tom Lane |
|---|---|
| Тема | Re: RADIUS authentication |
| Дата | |
| Msg-id | 11586.1263919093@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: RADIUS authentication (Magnus Hagander <magnus@hagander.net>) |
| Список | pgsql-hackers |
Magnus Hagander <magnus@hagander.net> writes:
> 2010/1/18 KaiGai Kohei <kaigai@ak.jp.nec.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
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера