update curlywas

This commit is contained in:
2022-05-08 00:19:49 +02:00
parent 7cea4eebd3
commit 9f548cd6f0
5 changed files with 7 additions and 9 deletions

View File

@@ -32,11 +32,9 @@ export fn random() -> i32 {
}
export fn random64() -> i64 {
let state: i64;
randomState = (state := (
state := randomState ^ (randomState #>> 12i64)
) ^ (state << 25i64)
) ^ (state #>> 27i64);
let lazy state = randomState ^ (randomState #>> 12i64);
let lazy state = state ^ (state << 25i64);
randomState = state ^ (state #>> 27i64);
randomState * 0x2545f4914f6cdd1di64
}