1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

Windows: MSVC2017: changes in qrtplib

This commit is contained in:
f4exb
2018-11-12 16:05:18 +01:00
parent cdacf51bfb
commit f97728c4e9
5 changed files with 20 additions and 4 deletions
+8
View File
@@ -40,7 +40,11 @@
#include "rtprandomrand48.h"
#include <time.h>
#ifdef _MSC_VER
#include "Windows.h"
#else
#include <unistd.h>
#endif
#include <QDateTime>
@@ -50,7 +54,11 @@ namespace qrtplib
uint32_t RTPRandom::PickSeed()
{
uint32_t x;
#ifdef _MSC_VER
x = GetCurrentProcessId();
#else
x = (uint32_t) getpid();
#endif
QDateTime currentDateTime = QDateTime::currentDateTime();
x += currentDateTime.toTime_t();
#if defined(WIN32)