seed rand
This commit is contained in:
parent
25ce4b12bb
commit
b1a7defa00
1
main.c
1
main.c
@ -1069,6 +1069,7 @@ static void comm_in(int fd, short mask, void *data) {
|
|||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
swaylock_log_init(LOG_ERROR);
|
swaylock_log_init(LOG_ERROR);
|
||||||
initialize_pw_backend(argc, argv);
|
initialize_pw_backend(argc, argv);
|
||||||
|
srand(time(NULL));
|
||||||
|
|
||||||
enum line_mode line_mode = LM_LINE;
|
enum line_mode line_mode = LM_LINE;
|
||||||
state.failed_attempts = 0;
|
state.failed_attempts = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user