diff options
author | Bruce Momjian | 2006-06-08 03:29:30 +0000 |
---|---|---|
committer | Bruce Momjian | 2006-06-08 03:29:30 +0000 |
commit | a0f4151af09fb4da274c53fe5ddfd2a335972c09 (patch) | |
tree | e37df312a636f8ee0648425cdfccd2ee3432d7c2 | |
parent | 729aff99dd901a7b0ebc2dddc06a4273bddc82b1 (diff) |
Add missing 3rd argument to open().
-rw-r--r-- | contrib/pgcrypto/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgcrypto/random.c b/contrib/pgcrypto/random.c index b9300bad06..2c09d18dfd 100644 --- a/contrib/pgcrypto/random.c +++ b/contrib/pgcrypto/random.c @@ -82,10 +82,10 @@ try_dev_random(uint8 *dst) int fd; int res; - fd = open("/dev/urandom", O_RDONLY); + fd = open("/dev/urandom", O_RDONLY, 0); if (fd == -1) { - fd = open("/dev/random", O_RDONLY); + fd = open("/dev/random", O_RDONLY, 0); if (fd == -1) return dst; } |