gcc/libgfortran/intrinsics
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
..
abort.c Update copyright years. 2016-01-04 15:30:50 +01:00
access.c Update copyright years. 2016-01-04 15:30:50 +01:00
args.c Update copyright years. 2016-01-04 15:30:50 +01:00
associated.c Update copyright years. 2016-01-04 15:30:50 +01:00
bit_intrinsics.c Update copyright years. 2016-01-04 15:30:50 +01:00
c99_functions.c Update copyright years. 2016-01-04 15:30:50 +01:00
chdir.c Update copyright years. 2016-01-04 15:30:50 +01:00
chmod.c Update copyright years. 2016-01-04 15:30:50 +01:00
clock.c Update copyright years. 2016-01-04 15:30:50 +01:00
cpu_time.c Update copyright years. 2016-01-04 15:30:50 +01:00
cshift0.c Update copyright years. 2016-01-04 15:30:50 +01:00
ctime.c Update copyright years. 2016-01-04 15:30:50 +01:00
date_and_time.c Update copyright years. 2016-01-04 15:30:50 +01:00
dprod_r8.f90 Update copyright years. 2016-01-04 15:30:50 +01:00
dtime.c Update copyright years. 2016-01-04 15:30:50 +01:00
env.c Update copyright years. 2016-01-04 15:30:50 +01:00
eoshift0.c Update copyright years. 2016-01-04 15:30:50 +01:00
eoshift2.c Update copyright years. 2016-01-04 15:30:50 +01:00
erfc_scaled.c Update copyright years. 2016-01-04 15:30:50 +01:00
erfc_scaled_inc.c Update copyright years. 2016-01-04 15:30:50 +01:00
etime.c Update copyright years. 2016-01-04 15:30:50 +01:00
execute_command_line.c execute_command_line.c (set_cmdstat): Use "%s", msg instead of msg to avoid -Wformat-security warning. 2016-01-15 21:20:58 +01:00
exit.c Update copyright years. 2016-01-04 15:30:50 +01:00
extends_type_of.c Update copyright years. 2016-01-04 15:30:50 +01:00
f2c_specifics.F90 Update copyright years. 2016-01-04 15:30:50 +01:00
fnum.c Update copyright years. 2016-01-04 15:30:50 +01:00
gerror.c Update copyright years. 2016-01-04 15:30:50 +01:00
getXid.c Update copyright years. 2016-01-04 15:30:50 +01:00
getcwd.c Update copyright years. 2016-01-04 15:30:50 +01:00
getlog.c Update copyright years. 2016-01-04 15:30:50 +01:00
hostnm.c Update copyright years. 2016-01-04 15:30:50 +01:00
ierrno.c Update copyright years. 2016-01-04 15:30:50 +01:00
ishftc.c Update copyright years. 2016-01-04 15:30:50 +01:00
iso_c_binding.c Update copyright years. 2016-01-04 15:30:50 +01:00
iso_c_binding.h Update copyright years. 2016-01-04 15:30:50 +01:00
iso_c_generated_procs.c Update copyright years. 2016-01-04 15:30:50 +01:00
kill.c Update copyright years. 2016-01-04 15:30:50 +01:00
link.c Update copyright years. 2016-01-04 15:30:50 +01:00
malloc.c Update copyright years. 2016-01-04 15:30:50 +01:00
move_alloc.c Update copyright years. 2016-01-04 15:30:50 +01:00
mvbits.c Update copyright years. 2016-01-04 15:30:50 +01:00
pack_generic.c Update copyright years. 2016-01-04 15:30:50 +01:00
perror.c Update copyright years. 2016-01-04 15:30:50 +01:00
rand.c Update copyright years. 2016-01-04 15:30:50 +01:00
random.c Use a XOR cipher instead of byte shuffling to protect against bad seeds. 2016-08-19 17:19:51 +03:00
rename.c Update copyright years. 2016-01-04 15:30:50 +01:00
reshape_generic.c Update copyright years. 2016-01-04 15:30:50 +01:00
reshape_packed.c Update copyright years. 2016-01-04 15:30:50 +01:00
selected_char_kind.c Update copyright years. 2016-01-04 15:30:50 +01:00
selected_int_kind.f90 Update copyright years. 2016-01-04 15:30:50 +01:00
selected_real_kind.f90 Update copyright years. 2016-01-04 15:30:50 +01:00
signal.c Update copyright years. 2016-01-04 15:30:50 +01:00
size.c Update copyright years. 2016-01-04 15:30:50 +01:00
sleep.c Update copyright years. 2016-01-04 15:30:50 +01:00
spread_generic.c Update copyright years. 2016-01-04 15:30:50 +01:00
stat.c Update copyright years. 2016-01-04 15:30:50 +01:00
string_intrinsics.c Update copyright years. 2016-01-04 15:30:50 +01:00
string_intrinsics_inc.c Update copyright years. 2016-01-04 15:30:50 +01:00
symlnk.c Update copyright years. 2016-01-04 15:30:50 +01:00
system.c Update copyright years. 2016-01-04 15:30:50 +01:00
system_clock.c Update copyright years. 2016-01-04 15:30:50 +01:00
time.c Update copyright years. 2016-01-04 15:30:50 +01:00
time_1.h Update copyright years. 2016-01-04 15:30:50 +01:00
transpose_generic.c Update copyright years. 2016-01-04 15:30:50 +01:00
umask.c Update copyright years. 2016-01-04 15:30:50 +01:00
unlink.c Update copyright years. 2016-01-04 15:30:50 +01:00
unpack_generic.c Update copyright years. 2016-01-04 15:30:50 +01:00