Hacker News new | ask | show | jobs
by bentcorner 1873 days ago
That's my guess too. They were probably using ranqd1, then someone turned on a new warning, then someone else had to figure out what to do with the warning without really understanding the change they were making.

It'd be interesting to see if the same randomizer is used in other SMB games after NSMB and any ports.

1 comments

I don't think this would make a warning go away. value + (value >> 32) is still a 64bit int value that gets then cast to a 32bit int.
Whoops, good point. Uh.. maybe there's a cast in the original source and the bit shift was added at the same time?