Modified Sg_SetSeed, Sg_ReadRandomBytes and Sg_ReadRandomBytesX to use Sg_VMApply.