]> gcc.gnu.org Git - gcc.git/commit
toplev: read from /dev/urandom only when needed
authorAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 21 Sep 2017 12:58:14 +0000 (15:58 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 21 Sep 2017 12:58:14 +0000 (15:58 +0300)
commitedabe3d8b479e47a1bb3ed495f2a1d94b0ecbb2d
tree77c21e6b5ad04bf112b599f048ac60ed9a06a9b8
parent9acb459230318eb2f786dc0b974812884a2f3d54
toplev: read from /dev/urandom only when needed

* toplev.h (set_random_seed): Adjust return type.
* toplev.c (init_local_tick): Move eager initialization of random_seed
to get_random_seed.  Adjust comment.
(init_random_seed): Inline to get_random_seed, delete.
(get_random_seed): Initialize random_seed lazily.
(set_random_seed): Do not return previous value.
(print_switch_value): Do not call get_random_seed.

From-SVN: r253069
gcc/ChangeLog
gcc/toplev.c
gcc/toplev.h
This page took 0.054979 seconds and 5 git commands to generate.