skeeto / hash-prospector

Automated integer hash function discovery
The Unlicense
672 stars 27 forks source link

Template parses rotate amounts as hex not decimal #2

Closed ajohnson1 closed 4 years ago

ajohnson1 commented 4 years ago

The other shift type operations parse the shift amount as decimal, so it would be more logical to parse rotates as decimal too.

./prospector -8 -t 10000 -p rot:32

See these which might be better moved to the other set of switch cases. https://github.com/skeeto/hash-prospector/blob/627f16cce31fa1e9377ea624765d4fca5eb518f4/prospector.c#L675 https://github.com/skeeto/hash-prospector/blob/627f16cce31fa1e9377ea624765d4fca5eb518f4/prospector.c#L679

skeeto commented 4 years ago

You're right, thanks! I think this was just an oversight on my part.