[COMMITTERS] pgsql: Forbid gen_random_uuid() with --disable-strong-random

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема [COMMITTERS] pgsql: Forbid gen_random_uuid() with --disable-strong-random
Дата
Msg-id E1dRxNL-000182-L4@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Forbid gen_random_uuid() with --disable-strong-random

Previously, gen_random_uuid() would fall back to a weak random number
generator, unlike gen_random_bytes() which would just fail. And this was
not made very clear in the docs. For consistency, also make
gen_random_uuid() fail outright, if compiled with --disable-strong-random.

Re-word the error message you get with --disable-strong-random. It is also
used by pgp functions that require random salts, and now also
gen_random_uuid().

Reported by Radek Slupik.

Discussion: https://www.postgresql.org/message-id/20170101232054.10135.50528@wrigleys.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bf723a274cbb00c7fba66c66312a77940af13d79

Modified Files
--------------
contrib/pgcrypto/expected/pgp-compression_1.out    |  8 ++--
contrib/pgcrypto/expected/pgp-decrypt_1.out        |  4 +-
contrib/pgcrypto/expected/pgp-encrypt_1.out        | 46 +++++++++++-----------
contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out | 12 +++---
contrib/pgcrypto/pgcrypto.c                        | 10 ++---
contrib/pgcrypto/px.c                              |  2 +-
6 files changed, 41 insertions(+), 41 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Fix race condition in recovery/t/009_twophase.pl test.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: [COMMITTERS] pgsql: Treat clean shutdown of an SSL connection same as the non-SSLca