Revert "Replace PostmasterRandom() with a stronger way of generating randomness."
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Revert "Replace PostmasterRandom() with a stronger way of generating randomness." This reverts commit 9e083fd4683294f41544e6d0d72f6e258ff3a77c. That was a few bricks shy of a load: * Query cancel stopped working * Buildfarm member pademelon stopped working, because the box doesn't have /dev/urandom nor /dev/random. This clearly needs some more discussion, and a quite different patch, so revert for now.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgcrypto/internal.c | modified | +16 −24 |
| contrib/pgcrypto/Makefile | modified | +1 −1 |
| contrib/pgcrypto/random.c | added | +247 −0 |
| src/backend/libpq/auth.c | modified | +4 −23 |
| src/backend/postmaster/postmaster.c | modified | +112 −41 |
| src/include/port.h | modified | +0 −3 |
| src/port/Makefile | modified | +1 −1 |
| src/port/pg_strong_random.c | deleted | +0 −148 |
| src/tools/msvc/Mkvcbuild.pm | modified | +3 −3 |