diff --git a/main.c b/main.c index de0bada..fb84b05 100644 --- a/main.c +++ b/main.c @@ -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;