Changeset 70 in tspsg-svn for trunk/src/main.cpp


Ignore:
Timestamp:
Nov 2, 2009, 9:56:53 AM (15 years ago)
Author:
laleppa
Message:

Fixed random number generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cpp

    r57 r70  
    4444        app.setApplicationName("TSPSG");
    4545        app.setApplicationVersion(BUILD_VERSION);
     46
     47        // Seeding random number generator
     48        qsrand(QDateTime::currentDateTime().toTime_t() ^ QCursor::pos().x() ^ QCursor::pos().y());
     49
    4650MainWindow mainwindow;
    4751        mainwindow.show();
Note: See TracChangeset for help on using the changeset viewer.