aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@gcc.gnu.org>2017-09-21 15:58:14 +0300
committerAlexander Monakov <amonakov@gcc.gnu.org>2017-09-21 15:58:14 +0300
commitedabe3d8b479e47a1bb3ed495f2a1d94b0ecbb2d (patch)
tree77c21e6b5ad04bf112b599f048ac60ed9a06a9b8 /gcc/toplev.h
parent9acb459230318eb2f786dc0b974812884a2f3d54 (diff)
downloadgcc-edabe3d8b479e47a1bb3ed495f2a1d94b0ecbb2d.zip
gcc-edabe3d8b479e47a1bb3ed495f2a1d94b0ecbb2d.tar.gz
gcc-edabe3d8b479e47a1bb3ed495f2a1d94b0ecbb2d.tar.bz2
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
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 2f6b587..aed806e 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -91,7 +91,7 @@ extern bool set_src_pwd (const char *);
/* Functions used to manipulate the random seed. */
extern HOST_WIDE_INT get_random_seed (bool);
-extern const char *set_random_seed (const char *);
+extern void set_random_seed (const char *);
extern void initialize_rtl (void);