Opening git commit works properly now

This commit is contained in:
Krzosa Karol
2024-08-08 08:01:49 +02:00
parent 080669b5e9
commit bfff188726
6 changed files with 41 additions and 19 deletions

View File

@@ -1106,6 +1106,18 @@ struct Scratch {
Scratch(Scratch &arena, Scratch &a2);
};
struct RandomSeed {
uint64_t a;
};
inline uint64_t GetRandomU64(RandomSeed *state) {
uint64_t x = state->a;
x ^= x << 13;
x ^= x >> 7;
x ^= x << 17;
return state->a = x;
}
//
// Implementation
//