binji / binjgb

Gameboy emulator implemented in C, that also runs in the browser
https://binji.github.io/binjgb/
MIT License
534 stars 61 forks source link

Initialize memory with random values #14

Closed tobiasvl closed 5 years ago

tobiasvl commented 6 years ago

It doesn't seem like the memory is "random" enough when uninitialized after boot. This means that common PRNG routines that rely on uninitialized RAM as a seed don't work.

binji commented 6 years ago

Hm, good point. Though I also like having the runs be deterministic. I suppose the solution is to allow the user to pass a seed value.