SARC: Difference between revisions

Jump to navigation Jump to search
m
imported>Leoetlino
imported>Leoetlino
Line 7: Line 7:
The algorithm given on the MK8 wiki is not fully correct: it fails to account for the fact that Nintendo's algorithm uses an unsigned 32-bit integer for the hash variable, and a '''''signed'' char variable'''.
The algorithm given on the MK8 wiki is not fully correct: it fails to account for the fact that Nintendo's algorithm uses an unsigned 32-bit integer for the hash variable, and a '''''signed'' char variable'''.


Here is more accurate implementation of the algorithm, written in C++:
Here is an accurate implementation of the algorithm, written in C++:


<source lang="c++">
<source lang="c++">
Anonymous user

Navigation menu