Skip to content

Commit

Permalink
Merge pull request IJHack#129 from treat1/qrand
Browse files Browse the repository at this point in the history
qrand always generating the same sequence of passwords
  • Loading branch information
annejan committed Dec 31, 2015
2 parents 8444f0a + 961530c commit fc06d8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ MainWindow::MainWindow(QWidget *parent)
setClippedPassword("");
QtPass = NULL;
QTimer::singleShot(10, this, SLOT(focusInput()));
qsrand(QDateTime::currentDateTime().toTime_t());
}

void MainWindow::focusInput() {
Expand Down

0 comments on commit fc06d8f

Please sign in to comment.