mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
main: initialize pseudo-random generator
This commit is contained in:
parent
39c5057d49
commit
c600e131e2
1 changed files with 2 additions and 0 deletions
2
main.c
2
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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue