From b1a7defa0087db7b984f568c79634316bb6bf1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B8rum?= Date: Fri, 28 Jun 2019 12:10:28 +0200 Subject: [PATCH] seed rand --- main.c | 1 + 1 file changed, 1 insertion(+) 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;