From: dominiq Date: Wed, 13 Apr 2016 15:04:57 +0000 (+0000) Subject: 2016-04-13 Dominique d'Humieres X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d33897b8b6ffd02c8b9b876732dd22663ba797c;p=thirdparty%2Fgcc.git 2016-04-13 Dominique d'Humieres PR fortran/67039 * intrinsic.texi: Correct the documentation of pseudorandom number intrinsics. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234946 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 8ab7cacb5803..e2f216d2bc6f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2016-04-13 Dominique d'Humieres + + PR fortran/67039 + * intrinsic.texi: Correct the documentation of pseudorandom + number intrinsics. + 2016-04-13 Dominique d'Humieres PR fortran/58000 diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index f9760f6a3ab2..88406301d9f1 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -12628,10 +12628,12 @@ Does not return anything. See @code{RAND} and @code{IRAND} for examples. @item @emph{Notes}: -The Fortran 2003 standard specifies the intrinsic @code{RANDOM_SEED} to -initialize the pseudo-random numbers generator and @code{RANDOM_NUMBER} -to generate pseudo-random numbers. Please note that in -GNU Fortran, these two sets of intrinsics (@code{RAND}, +The Fortran standard specifies the intrinsic subroutines +@code{RANDOM_SEED} to initialize the pseudo-random number +generator and @code{RANDOM_NUMBER} to generate pseudo-random numbers. +These subroutines should be used in new codes. + +Please note that in GNU Fortran, these two sets of intrinsics (@code{RAND}, @code{IRAND} and @code{SRAND} on the one hand, @code{RANDOM_NUMBER} and @code{RANDOM_SEED} on the other hand) access two independent pseudo-random number generators.