Core/Misc: Replace rand() calls with SFMT