gcc/libgfortran
Janne Blomqvist d66d6d15f1 Use getentropy() for seeding PRNG
The getentropy function, found on Linux, OpenBSD, and recently also
FreeBSD, can be used to get random bytes to initialize the PRNG.  It
is similar to the traditional way of reading from /dev/urandom, but
being a system call rather than a special file, it doesn't suffer from
problems like running out of file descriptors, or failure when running
in a container where /dev/urandom may not be available.

Regtested on x86_64-pc-linux-gnu, Ok for trunk?

2018-08-13  Janne Blomqvist  <jb@gcc.gnu.org>

	* configure.ac: Check for getentropy.
	* intrinsics/random.c (getosrandom): Use getentropy if available.
	* config.h.in: Regenerated.
	* configure: Regenerated.

From-SVN: r263522
2018-08-13 23:21:50 +03:00
..
caf PR 84519 Handle optional QUIET specifier for STOP and ERROR STOP 2018-02-23 11:07:24 +02:00
config Update copyright years. 2018-01-03 11:03:58 +01:00
generated re PR fortran/85816 (nested spread fails with "Integer overflow in xmallocarray") 2018-06-01 20:20:35 +00:00
ieee Update copyright years. 2018-01-03 11:03:58 +01:00
intrinsics Use getentropy() for seeding PRNG 2018-08-13 23:21:50 +03:00
io Reverting 'AsyncI/O patch committed' as it is breaking bare-metal builds. 2018-07-31 08:42:21 +00:00
m4 re PR fortran/85816 (nested spread fails with "Integer overflow in xmallocarray") 2018-06-01 20:20:35 +00:00
runtime Reverting 'AsyncI/O patch committed' as it is breaking bare-metal builds. 2018-07-31 08:42:21 +00:00
ChangeLog Use getentropy() for seeding PRNG 2018-08-13 23:21:50 +03:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014 Update copyright years. 2016-01-04 15:30:50 +01:00
ChangeLog-2015 Update copyright years. 2016-01-04 15:30:50 +01:00
ChangeLog-2016 Update copyright years. 2017-01-01 13:07:43 +01:00
ChangeLog-2017 Update copyright years. 2018-01-03 11:03:58 +01:00
Makefile.am Reverting 'AsyncI/O patch committed' as it is breaking bare-metal builds. 2018-07-31 08:42:21 +00:00
Makefile.in Reverting 'AsyncI/O patch committed' as it is breaking bare-metal builds. 2018-07-31 08:42:21 +00:00
acinclude.m4 Enable building libgfortran with Intel CET 2017-11-17 23:44:59 +01:00
aclocal.m4 Disable hwcaps on libgfortran 2016-12-12 13:40:21 +00:00
c99_protos.h Update copyright years. 2018-01-03 11:03:58 +01:00
config.h.in Use getentropy() for seeding PRNG 2018-08-13 23:21:50 +03:00
configure Use getentropy() for seeding PRNG 2018-08-13 23:21:50 +03:00
configure.ac Use getentropy() for seeding PRNG 2018-08-13 23:21:50 +03:00
configure.host re PR target/78478 (Compile Error for i386-rtems) 2017-01-19 22:00:53 +01:00
gfortran.map Reverting 'AsyncI/O patch committed' as it is breaking bare-metal builds. 2018-07-31 08:42:21 +00:00
kinds-override.h Update copyright years. 2018-01-03 11:03:58 +01:00
libgfortran.h Reverting 'AsyncI/O patch committed' as it is breaking bare-metal builds. 2018-07-31 08:42:21 +00:00
libgfortran.spec.in
libtool-version re PR fortran/34640 (ICE when assigning item of a derived-component to a pointer) 2017-09-10 17:02:53 +00:00
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh