fn uint64(input: u64) u64 input: u6491
92
93
94
95
96
97
98
99fn uint64(input: u64) u64 {
var x: u64 = input;
const c = 0xbea225f9eb34556d;
x = (x ^ (x >> 32)) *% c;
x = (x ^ (x >> 29)) *% c;
x = (x ^ (x >> 32)) *% c;
x = x ^ (x >> 29);
return x;
}
Source: https://github.com/jonmaiga/mx3