main: initialize pseudo-random generator

This commit is contained in:
Daniel Eklöf 2021-02-13 13:40:39 +01:00
parent 39c5057d49
commit c600e131e2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
main.c
View file

@ -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()) {