diff --git a/IntXLib/src/PcgRandom/PcgRandomMinimal.h b/IntXLib/src/PcgRandom/PcgRandomMinimal.h index be08d8d..4bfb844 100644 --- a/IntXLib/src/PcgRandom/PcgRandomMinimal.h +++ b/IntXLib/src/PcgRandom/PcgRandomMinimal.h @@ -7,7 +7,7 @@ typedef unsigned long long UInt64; typedef unsigned int UInt32; -#include +#include #include using namespace std; @@ -50,7 +50,7 @@ class Pcg static UInt64 GetInitState(UInt64 &initSeq) { - UInt64 result = time(0); + UInt64 result = chrono::duration_cast(chrono::system_clock::now().time_since_epoch()).count(); initSeq = GetInitSeq(result) * (long long)(1000000);