fix error: initializer element is not a compile-time constant

This commit is contained in:
Andrei Alexeyev 2019-11-22 08:25:09 +02:00
parent afd9d492dc
commit 3725e3184a
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -25,7 +25,7 @@ uint64_t splitmix64(uint64_t *state) {
}
uint64_t makeseed(void) {
static uint64_t s = (uintptr_t)&makeseed;
static uint64_t s = 69;
return splitmix64(&s) ^ SDL_GetPerformanceCounter();
}