Changeset 3b1caa32d0 in tspsg for src/main.cpp


Ignore:
Timestamp:
Nov 2, 2009, 9:56:53 AM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
0ac9690913
Parents:
f383cb181c
Message:

Fixed random number generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    rf383cb181c r3b1caa32d0  
    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.