git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6476752) | patch
Forbid gen_random_uuid() with --disable-strong-random
Mon, 3 Jul 2017 09:10:11 +0000 (12:10 +0300)
Mon, 3 Jul 2017 09:10:11 +0000 (12:10 +0300)
commit bf723a274cbb00c7fba66c66312a77940af13d79
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
contrib/pgcrypto/expected/pgp-compression_1.out diff | blob | blame | history
contrib/pgcrypto/expected/pgp-decrypt_1.out diff | blob | blame | history
contrib/pgcrypto/expected/pgp-encrypt_1.out diff | blob | blame | history
contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out diff | blob | blame | history
contrib/pgcrypto/pgcrypto.c diff | blob | blame | history
contrib/pgcrypto/px.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /