The wording of the question is somewhat ambiguous. It is possible to read the question as asking about this behavior:
#include <random>
#include <iostream>
int
main()
{
std::mt19937 eng1(4294967296);
for (int i = 0; i < 10; ++i)
std::cout << eng1() << '\n';
std::cout << '\n';
std::mt19937 eng2(0);
for (int i = 0; i < 10; ++i)
std::cout << eng2() << '\n';
}
My compiler spits out a warning which should be heeded:
test.cpp:7:23: warning: implicit conversion from 'long' to 'result_type' (aka 'unsigned int') changes value from 4294967296 to 0 [-Wconstant-conversion]
std::mt19937 eng1(4294967296);
~~~~ ^~~~~~~~~~
1 warning generated.
If this is what you are seeing it is because
static_cast<std::mt19937::result_type>(4294967296) == 0
If this is not the behavior you're asking about, please clarify your question.