tincd on Windows: call srand() after main2()
authorKirill Isakov <is-kir@ya.ru>
Sun, 15 Aug 2021 12:43:14 +0000 (18:43 +0600)
committerKirill Isakov <is-kir@ya.ru>
Sun, 15 Aug 2021 12:43:14 +0000 (18:43 +0600)
commit560ba93b98847b106572da6001c6fa056dd3c612
treec297f5583d3daac465fff453ce45a906868c5a69
parentc1e1612fae0f18bf3a5538dddf3de385b32b087b
tincd on Windows: call srand() after main2()

On Windows, rand() was returning the same sequence on every service
execution, because srand() was initializing its state only for the
short-lived process.
src/tincd.c