Code: Select all
#include <random>
#include <iostream>
int GetRandomNumber(int min, int max)
{
if (min >= max)
return min;
std::uniform_int_distribution<int> dist(min, max);
std::random_device rd;
return dist(rd);
}
int main()
{
for (int i = 0; i < 16; ++i)
std::cout << GetRandomNumber(0, 10) << "\n";
}
it look like the same issue like this: http://stackoverflow.com/questions/1888 ... mingw-gcc4
you can turn on the debug information in FileZilla (I test it with 3.13.0), connect to any ftp site, it should send keepalive command every 30 seconds, but it will always send the same command.