Use rand_s on MinGW-w64, fix array bound overflow.
authorJanne Blomqvist <jb@gcc.gnu.org>
Wed, 21 Sep 2016 10:07:06 +0000 (13:07 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Wed, 21 Sep 2016 10:07:06 +0000 (13:07 +0300)
commit9ad5c32a217ab45edbf231d7ee56a1351aac84c7
treed7543e41b04c30c8b50d74579cede77792e804c2
parentbc084f84b3baee7b9fdc73cc05b6aa8adf1e97e5
Use rand_s on MinGW-w64, fix array bound overflow.

2016-09-21  Janne Blomqvist  <jb@gcc.gnu.org>

* intrinsics/random.c (getosrandom): Use rand_s() on
MinGW-w64. Fix bounds overflow in fallback code.

From-SVN: r240309
libgfortran/ChangeLog
libgfortran/intrinsics/random.c