I usually seed my RNG by the following time, obtained by a call to time.h
#include <iostream>
#include <time.h>
using namespace std;
int main()
{
cout << static_cast<unsigned int>(time(0)) << endl;
return 0;
}
Is there an equivalent to static_cast<unsigned int>(time(0))
in the Boost-library?