Re: rand48 replacement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: rand48 replacement
Дата
Msg-id 746421.1625164869@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: rand48 replacement  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: rand48 replacement
Re: rand48 replacement
Список pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> Although this patch is marked RFC, the cfbot shows it doesn't
>> even compile on Windows.  I think you missed updating Mkvcbuild.pm.

> Indeed. Here is a blind attempt at fixing the build, I'll check later to 
> see whether it works. It would help me if the cfbot results were 
> integrated into the cf app.

Hmm, not there yet per cfbot, not sure why not.

Anyway, after taking a very quick look at the patch itself, I've
got just one main objection: I don't approve of putting this in
port.h or src/port/.  erand48.c is there because we envisioned it
originally as an occasionally-used substitute for libc facilities.
But this is most certainly not that, so it belongs in src/common/
instead.  I'd also be inclined to invent a new single-purpose .h
file for it.

I see that you probably did that because random.c and srandom.c
depend on it, but I wonder why we don't make an effort to flush
those altogether.  It's surely pretty confusing to newbies that
what appears to be a call of the libc primitives is no such thing.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jacob Champion
Дата:
Сообщение: Re: Preventing abort() and exit() calls in libpq
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Preventing abort() and exit() calls in libpq