Created
July 9, 2023 11:29
-
-
Save ialexpovad/9c884767cc2e9bfa1ab35c9cbbb7ea83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int wang_hash(int seed) | |
{ | |
seed = (seed ^ 61) ^ (seed >> 16); | |
seed *=9; | |
seed = seed ^ (seed >> 4); | |
seed *= 0x27d4eb2d; | |
seed = seed ^ (seed >> 15); | |
return seed; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment