Compiled 0.96 on Windows 10 with MinGW-w64 13.0.0 and RNG_test.exe seemed to randomly fail with message "error reading from file". It turns out that because MinGW does not define WIN32, it uses _WIN32, RNG_test.cpp will not set stdin to binary mode. So, if -DWIN32 is passed to g++ it will work.