gcc/libgfortran
Janne Blomqvist 09309e09ec Use a XOR cipher instead of byte shuffling to protect against bad seeds.
libgfortran:
2016-08-19  Janne Blomqvist  <jb@gcc.gnu.org>

        * intrinsics/random.c (xor_keys): New array with "secret" keys.
        (scramble_seed): XOR given seed with xor_keys array rather than
        shuffling bytes.
        (unscramble_seed): Remove function.
        (random_seed_i4): Use new scramble_seed.
        (random_seed_i8): Likewise.

frontend:
2016-08-19  Janne Blomqvist  <jb@gcc.gnu.org>

        * intrinsics.texi (RANDOM_NUMBER): Remove reference to
        init_random_seed in example.
        (RANDOM_SEED): Remove warning to not set all seed values to 0.

From-SVN: r239613
2016-08-19 17:19:51 +03:00
..
caf libcaf.h: Add parameter stat to caf_get() and caf_send()'s function prototypes. 2016-07-22 11:58:50 +02:00
config
generated
ieee
intrinsics Use a XOR cipher instead of byte shuffling to protect against bad seeds. 2016-08-19 17:19:51 +03:00
io re PR libfortran/48852 (Invalid spaces in list-directed output of complex constants) 2016-06-23 15:58:05 +00:00
m4
runtime Replace KISS PRNG with xorshift1024* using per-thread state. 2016-08-11 11:58:55 +03:00
acinclude.m4
aclocal.m4
c99_protos.h
ChangeLog Use a XOR cipher instead of byte shuffling to protect against bad seeds. 2016-08-19 17:19:51 +03:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
config.h.in
configure
configure.ac
configure.host
gfortran.map
kinds-override.h
libgfortran.h
libgfortran.spec.in
libtool-version
Makefile.am
Makefile.in
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh