seed rand

This commit is contained in:
Martin Dørum 2019-06-28 12:10:28 +02:00 committed by Drew DeVault
parent 25ce4b12bb
commit b1a7defa00

1
main.c
View File

@ -1069,6 +1069,7 @@ static void comm_in(int fd, short mask, void *data) {
int main(int argc, char **argv) {
swaylock_log_init(LOG_ERROR);
initialize_pw_backend(argc, argv);
srand(time(NULL));
enum line_mode line_mode = LM_LINE;
state.failed_attempts = 0;