SARC: Difference between revisions
Jump to navigation
Jump to search
m
→Hash algorithm
imported>Leoetlino m (→Hash algorithm) |
imported>Leoetlino m (→Hash algorithm) |
||
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 | Here is an accurate implementation of the algorithm, written in C++: | ||
<source lang="c++"> | <source lang="c++"> |