summaryrefslogtreecommitdiff
path: root/src/random-seed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/random-seed.c')
-rw-r--r--src/random-seed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/random-seed.c b/src/random-seed.c
index 054233e660..ee5cae315c 100644
--- a/src/random-seed.c
+++ b/src/random-seed.c
@@ -47,6 +47,8 @@ int main(int argc, char *argv[]) {
log_parse_environment();
log_open();
+ umask(0022);
+
/* Read pool size, if possible */
if ((f = fopen("/proc/sys/kernel/random/poolsize", "re"))) {
fscanf(f, "%zu", &buf_size);