aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-21 19:48:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-21 19:48:18 +0000
commit2c881b9f0669e619b462e4b5dd5dc3b6f5a27822 (patch)
tree49776a16394e7aa2f4461e1f1317cf86e9c38500 /main.c
parentMerge branch 'restore-signals-when-spawning-subprocess' (diff)
parentchangelog: OSC-8 support (diff)
Merge branch 'osc8'
Closes #13
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 87f7a058..f02aa0cb 100644
--- a/main.c
+++ b/main.c
@@ -383,6 +383,8 @@ main(int argc, char *const *argv)
name.sysname, name.machine, sizeof(void *) * 8);
}
+ srand(time(NULL));
+
setlocale(LC_CTYPE, "");
LOG_INFO("locale: %s", setlocale(LC_CTYPE, NULL));
if (!locale_is_utf8()) {