Skip to content

Commit 12632d3

Browse files
committed
Add missing 3rd argument to open().
1 parent 149008d commit 12632d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/pgcrypto/random.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.16 2005/10/15 02:49:06 momjian Exp $
29+
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.17 2006/06/08 03:29:30 momjian Exp $
3030
*/
3131

3232
#include "postgres.h"
@@ -82,10 +82,10 @@ try_dev_random(uint8 *dst)
8282
int fd;
8383
int res;
8484

85-
fd = open("/dev/urandom", O_RDONLY);
85+
fd = open("/dev/urandom", O_RDONLY, 0);
8686
if (fd == -1)
8787
{
88-
fd = open("/dev/random", O_RDONLY);
88+
fd = open("/dev/random", O_RDONLY, 0);
8989
if (fd == -1)
9090
return dst;
9191
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy