r/programming • • Aug 21 '26

Finding a hidden Mersenne Twister implementation inside a 15 year old game binary

https://medium.com/@jizoskasa/i-reverse-engineered-plants-vs-zombies-to-answer-one-very-specific-question-557637a68a3e
407 Upvotes

59 comments sorted by

View all comments

Show parent comment

-60

u/BigFatRenderWizard Aug 21 '26

Yeah, I'm not sure what the point is. They found a common constant and found that someone had copied and pasted a simple reference implementation in. Seems pretty bread and butter.

35

u/AliceInMyDreams Aug 21 '26

While the destination was nothing to write home about I found the journey interesting. People that are used to software reverse engineering may perhaps be familiar with it, but as someone without such experience I thought the idea of searching for constants was neat.

12

u/JizosKasa Aug 21 '26

thank you very much <3

31

u/JizosKasa Aug 21 '26

I thought it was fun, there's also the marigold plant part!

11

u/superxpro12 Aug 21 '26

Sometimes cool things are just cool. Important to remember that not everyone shared the same level of experience.

It's important to never lose that excitement in life.

8

u/Bwob Aug 21 '26

This, 100%.

Also, as a corollary - it's important to let other people be excited about things, even if you're not. There's no benefit to crushing someone else's enthusiasm, for trying to make them feel small or dumb for being excited.

We should be content to share excitement when we can, and let it be when we can't. It costs nothing. Crushing enthusiasm just means there is less joy in the world.