Add cancer
This commit is contained in:
parent
b547dc3339
commit
3414f38c3a
14 changed files with 246 additions and 149 deletions
9
src/utils/hash.ts
Normal file
9
src/utils/hash.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export const hash = (state: number): number => {
|
||||
state ^= 2747636419;
|
||||
state *= 2654435769;
|
||||
state ^= state >> 16;
|
||||
state *= 2654435769;
|
||||
state ^= state >> 16;
|
||||
state *= 2654435769;
|
||||
return state / 4294967295.0;
|
||||
};
|
||||
Loading…
Reference in a new issue