+2004-05-14 Bud Davis <bdavis9659@comcast.net>
+
+ PR fortran/15149
+ * gfortran.fortran-torture/execute/random_init.f90: New test.
+
2004-05-13 Paul Brook <paul@codesourcery.com>
PR fortran/15314
--- /dev/null
+! pr 15149
+! verify the random number generator is functional
+ program test_random
+ implicit none
+ real :: r(5) = 0.0
+
+ call random_number(r)
+ if (all (r .eq. 0)) call abort
+ end program
+
+
+2004-05-14 Bud Davis <bdavis9659@comcast.net>
+
+ PR fortran/15149
+ * libgfortan.h,intrinsics/random.c: Made random_seed visible.
+ * runtime/main.c(init): Call random_seed as part of MAIN init.
+
2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
* io/format.c: (parse_format_list): No comma is required after
/* This is the routine which handles the seeding of the generator,
and also reading and writing of the seed. */
-#define random_seed prefix(random_seed)
void
random_seed (GFC_INTEGER_4 * size, const gfc_array_i4 * put,
const gfc_array_i4 * get)
GFC_INTEGER_4 compare_string (GFC_INTEGER_4, const char *,
GFC_INTEGER_4, const char *);
+/* random.c */
+
+#define random_seed prefix(random_seed)
+void random_seed (GFC_INTEGER_4 * size, const gfc_array_i4 * put,
+ const gfc_array_i4 * get);
+
#endif
#endif
memory_init ();
+ random_seed(NULL,NULL,NULL);
+
}