Replace KISS PRNG with xorshift1024* using per-thread state.
authorJanne Blomqvist <jb@gcc.gnu.org>
Thu, 11 Aug 2016 08:58:55 +0000 (11:58 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Thu, 11 Aug 2016 08:58:55 +0000 (11:58 +0300)
commitb152f5a2b33b251ab1874a43d97ce73d11eec0a4
tree60f87a35243956cff30462d3be48f97f4ba10d65
parentbb7ebad1c0f641753ffb60a22d2f3c546c406e1b
Replace KISS PRNG with xorshift1024* using per-thread state.

frontend:

2016-08-11  Janne Blomqvist  <jb@gcc.gnu.org>

* check.c (gfc_check_random_seed): Use new seed size in check.
* intrinsic.texi (RANDOM_NUMBER): Updated documentation.
(RANDOM_SEED): Likewise.

testsuite:

2016-08-11  Janne Blomqvist  <jb@gcc.gnu.org>

* gfortran.dg/random_7.f90: Take into account that the last seed
value is the special p value.
* gfortran.dg/random_seed_1.f90: Seed size is now constant.

libgfortran:
2016-08-11  Janne Blomqvist  <jb@gcc.gnu.org>

* intrinsics/random.c: Replace KISS with xorshift1024* using
per-thread state.
* runtime/main.c (init): Don't call random_seed_i4.

From-SVN: r239356
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/fortran/intrinsic.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/random_7.f90
gcc/testsuite/gfortran.dg/random_seed_1.f90
libgfortran/ChangeLog
libgfortran/intrinsics/random.c
libgfortran/runtime/main.c