We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 149008d commit 12632d3Copy full SHA for 12632d3
contrib/pgcrypto/random.c
@@ -26,7 +26,7 @@
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
* SUCH DAMAGE.
28
*
29
- * $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 $
30
*/
31
32
#include "postgres.h"
@@ -82,10 +82,10 @@ try_dev_random(uint8 *dst)
82
int fd;
83
int res;
84
85
- fd = open("/dev/urandom", O_RDONLY);
+ fd = open("/dev/urandom", O_RDONLY, 0);
86
if (fd == -1)
87
{
88
- fd = open("/dev/random", O_RDONLY);
+ fd = open("/dev/random", O_RDONLY, 0);
89
90
return dst;
91
}
0 commit comments