| От | Fabien COELHO |
|---|---|
| Тема | Re: pgsql: Set random seed for pgbench. |
| Дата | |
| Msg-id | alpine.DEB.2.20.1803311936450.23311@lancre обсуждение исходный текст |
| Ответ на | Re: pgsql: Set random seed for pgbench. (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: pgsql: Set random seed for pgbench.
|
| Список | pgsql-committers |
>> I assumed that pg_strong_random is always available,
>
> ... which is wrong. Every other call of it is wrapped in
> #ifdef HAVE_STRONG_RANDOM, and so must this one be.
Indeed, I clearly misunderstood its usage pattern. I looked at its source
("src/port/pg_strong_random.c") where the function is always defined and
is documented as returning false if it does not find a strong random
source, so I though that checking for this was enough. But indeed its
compilation fails if no source is provided.
Thanks for the fix.
--
Fabien.
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера