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:
parent
2ed3f51b51
commit
2c64456617
|
@ -884,7 +884,7 @@ void PowerNES(void) {
|
||||||
extern int disableBatteryLoading;
|
extern int disableBatteryLoading;
|
||||||
if(FCEUMOV_Mode(MOVIEMODE_INACTIVE) && !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)
|
//always reseed the PRNG with the current seed, for deterministic results (for that seed)
|
||||||
|
|
Loading…
Reference in New Issue