]> Shamusworld >> Repos - wozmaker/blobdiff - src/analysisthread.cpp
Small bugfix & fix for cross-platform compilation.
[wozmaker] / src / analysisthread.cpp
index 138da3ad75c874fa5998c41edd8d7fcc9ee4ed4c..2a909ae982aa52aac513e49fddf6fab09014f86e 100644 (file)
@@ -53,7 +53,7 @@ void AnalysisThread::run()
        for(uint32_t i=0; i<141; i+=4)
        {
                SynthesizeTrack(i);
-               int a = random() & 0x03;
+               int a = rand() & 0x03;
                Global::trackStatus[i] = (a == 0 ? 3 : a);
                emit(ShowTracks());
        }
@@ -65,7 +65,7 @@ void AnalysisThread::run()
                        continue;
 
                SynthesizeTrack(i);
-               int a = random() & 0x03;
+               int a = rand() & 0x03;
                Global::trackStatus[i] = (a == 0 ? 3 : a);
                emit(ShowTracks());
        }