Add cancer

This commit is contained in:
Andras Schmelczer 2023-05-21 13:51:09 +01:00
parent b547dc3339
commit 3414f38c3a
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
14 changed files with 258 additions and 161 deletions

9
src/utils/hash.ts Normal file
View 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;
};