Open zhubr opened 4 years ago
From what I have read support for random_init was introduced in gfortran 9. Because of this, at this time, we cannot implement this feature since most fusion clusters are hopelessly out of date. Your suggestion is a good one though and when gfortran 9 becomes common enough we will change it.
There has been a push for the use of Singularity containers in the future so this fix may happen sooner rather than later.
Hello, I'd propose to (conditionally) replace direct use of /dev/urandom with RANDOM_INIT/RANDOM_NUMBER builtins at least in case of GNU fortran, because it is more standard and portable method and internally employs /dev/urandom if available, with some fallbacks and alternative OS-specific mechanisms of obtaining random values. Please note that libgfortran has been using /dev/urandom internally since SVN r239356 (2016-08-11), whereas RANDOM_INIT was introduced in 2018, therefore the patch proposed below has no way to silently pick up some ancient dumb impementation (It would then fail to compile instead).