index ad2077244a7c4d1f3d093c19f161424f5d643381..b22e029d2c6eb74879e617d6536717470d08b118 100644 (file)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* 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"
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;
}