Updates the hash function in native so that it behaves exactly like the original one in emotion.
This has the advantage that there's no need to patch any existing user of styled-ppx & server-reason-react to override the emotion/hash function on the melange build, plus we lower the chances of collision / issues in the hashing algorithm as the original Emotion hash has been tested over time.
The PR also adds some basic cram test to make sure the results returned by each implementation are the same.
@davesnx Feel free to discard or take anything from the PR.
Updates the hash function in native so that it behaves exactly like the original one in emotion.
This has the advantage that there's no need to patch any existing user of styled-ppx & server-reason-react to override the emotion/hash function on the melange build, plus we lower the chances of collision / issues in the hashing algorithm as the original Emotion hash has been tested over time.
The PR also adds some basic cram test to make sure the results returned by each implementation are the same.
@davesnx Feel free to discard or take anything from the PR.