The default rand() and srand() differ between msvc and gcc. Attempting to fix this by implementing a custom C++ library.