PRNG fix for MSVC linking issues