Commit 12632d3c authored by Bruce Momjian's avatar Bruce Momjian

Add missing 3rd argument to open().

parent 149008df
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.16 2005/10/15 02:49:06 momjian Exp $ * $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.17 2006/06/08 03:29:30 momjian Exp $
*/ */
#include "postgres.h" #include "postgres.h"
...@@ -82,10 +82,10 @@ try_dev_random(uint8 *dst) ...@@ -82,10 +82,10 @@ try_dev_random(uint8 *dst)
int fd; int fd;
int res; int res;
fd = open("/dev/urandom", O_RDONLY); fd = open("/dev/urandom", O_RDONLY, 0);
if (fd == -1) if (fd == -1)
{ {
fd = open("/dev/random", O_RDONLY); fd = open("/dev/random", O_RDONLY, 0);
if (fd == -1) if (fd == -1)
return dst; return dst;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment