[Pkg-owncloud-commits] [owncloud-client] 413/498: cmd: properly initialize random seed to avoid transferid collisions #3522

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 79d895ed9e76a5da830fb6c53f62496b5a53f56c
Author: Vincent Petry <PVince81 at owncloud.com>
Date:   Thu Jul 30 18:08:28 2015 +0200

    cmd: properly initialize random seed to avoid transferid collisions #3522
---
 src/cmd/cmd.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp
index 8a59c4a..73b93c8 100644
--- a/src/cmd/cmd.cpp
+++ b/src/cmd/cmd.cpp
@@ -268,6 +268,8 @@ void selectiveSyncFixup(OCC::SyncJournalDb *journal, const QStringList &newList)
 int main(int argc, char **argv) {
     QCoreApplication app(argc, argv);
 
+    qsrand(QTime::currentTime().msec() * QCoreApplication::applicationPid());
+
     CmdOptions options;
     options.silent = false;
     options.trustSSL = false;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list