4 ms·
Article mentions he wants to make the seed explicit so he can reproduce the same (randomly selected) environment. You can use any stream cipher you want instea
by lvh 7y ago
Article mentions he wants to make the seed explicit so he can reproduce the same (randomly selected) environment.
You can use any stream cipher you want instead, of course, but in my experience for video games the problem isn’t “I need a random bit” (which AES CTR is very good at but MT or any PCG/LCG is really just as fit for purpose) but “I need to sample from this weird distribution”. Stuff goes wrong as soon as someone needs to do something as simple as sampling from a set of cardinality not exactly a power of two let alone something more complex.