should have kept rand() in the seed generator, it does get a time seed at init, also the |1 wasn't needed (the splitmix in the seed function takes care of that) so it's up to 32 bits

This commit is contained in:
rainwarrior 2018-01-17 05:12:01 +00:00
parent 2ed3f51b51
commit 2c64456617
1 changed files with 1 additions and 1 deletions

View File

@ -884,7 +884,7 @@ void PowerNES(void) {
extern int disableBatteryLoading;
if(FCEUMOV_Mode(MOVIEMODE_INACTIVE) && !disableBatteryLoading)
{
RAMInitSeed = (RAMInitSeed + (u32)(xoroshiro128plus_next())) | 1;
RAMInitSeed = rand() ^ (u32)xoroshiro128plus_next();
}
//always reseed the PRNG with the current seed, for deterministic results (for that seed)