summaryrefslogtreecommitdiff
path: root/libgfortran/runtime
diff options
context:
space:
mode:
authorbdavis <bdavis@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 12:21:22 +0000
committerbdavis <bdavis@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 12:21:22 +0000
commitd694eb47787c06604b54afaf179f9fade9899c1a (patch)
tree8eb3b34c4abee050f0ff71451a9f05b1c5fa40de /libgfortran/runtime
parent3e55413dd9a577b7b270e04f09ccb3f13a90a3cb (diff)
downloadgcc-d694eb47787c06604b54afaf179f9fade9899c1a.tar.gz
PR fortran/15149
* gfortran.fortran-torture/execute/random_init.f90: New test. * libgfortan.h,intrinsics/random.c: Made random_seed visible. * runtime/main.c(init): Call random_seed as part of MAIN init. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81836 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/runtime')
-rw-r--r--libgfortran/runtime/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/runtime/main.c b/libgfortran/runtime/main.c
index 60c032b4fcb..e3eaf2b2ffc 100644
--- a/libgfortran/runtime/main.c
+++ b/libgfortran/runtime/main.c
@@ -100,6 +100,8 @@ init (void)
#endif
memory_init ();
+ random_seed(NULL,NULL,NULL);
+
}