diff --git a/src/SFML/System/Randomizer.cpp b/src/SFML/System/Randomizer.cpp index 93500bce..18bbe9c5 100644 --- a/src/SFML/System/Randomizer.cpp +++ b/src/SFML/System/Randomizer.cpp @@ -26,8 +26,8 @@ // Headers //////////////////////////////////////////////////////////// #include -#include -#include +#include +#include namespace @@ -35,7 +35,7 @@ namespace // Set the random numbers sequence seed with the current system time, so that it is always different unsigned int SetRandomSeed() { - unsigned int Seed = static_cast(sf::priv::Platform::GetSystemTime() * 1000); + unsigned int Seed = static_cast(time(NULL)); srand(Seed); return Seed; }