rapiz1 / DungeonRush

πŸ‘ΎπŸ A opensource game inspired by Snake, written in pure C with SDL
GNU General Public License v3.0
2k stars 294 forks source link

Small bug in prng.c #36

Closed String10 closed 2 years ago

String10 commented 2 years ago

Maybe it should be nSeed % (PRNG_MAX + 1) but not nSeed % PRNG_MAX to get a value in [0, 32767]?

rapiz1 commented 2 years ago

Yes. You're right. It doesn't matter though.

String10 commented 2 years ago

Sure. πŸ˜†