diff options
Diffstat (limited to 'contrib/pgcrypto/px-crypt.c')
-rw-r--r-- | contrib/pgcrypto/px-crypt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/pgcrypto/px-crypt.c b/contrib/pgcrypto/px-crypt.c index ee40788fe71..51be0b7da17 100644 --- a/contrib/pgcrypto/px-crypt.c +++ b/contrib/pgcrypto/px-crypt.c @@ -34,7 +34,6 @@ #include "px.h" #include "px-crypt.h" -#include "utils/backend_random.h" static char * run_crypt_des(const char *psw, const char *salt, @@ -153,7 +152,7 @@ px_gen_salt(const char *salt_type, char *buf, int rounds) return PXE_BAD_SALT_ROUNDS; } - if (!pg_backend_random(rbuf, g->input_len)) + if (!pg_strong_random(rbuf, g->input_len)) return PXE_NO_RANDOM; p = g->gen(rounds, rbuf, g->input_len, buf, PX_MAX_SALT_LEN); |