diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-12-31 13:45:33 +0100 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-12-31 13:45:33 +0100 |
commit | fc06d8f4712b5d6a98a85b3756a1851018df016f (patch) | |
tree | f6f0e2969e9ba5997fe1b549b533fd6238ef16fd | |
parent | 8444f0af7d6a391e6ca7ae1969da4ce76d3ce4ca (diff) | |
parent | 961530c1c588bfb955457f34677e81d378818a8a (diff) |
Merge pull request #129 from treat1/qrand
qrand always generating the same sequence of passwords
-rw-r--r-- | mainwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 8205209e..8ba97701 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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() { |