We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030abcd commit 92e82acCopy full SHA for 92e82ac
Include/internal/pycore_pystate.h
@@ -328,9 +328,9 @@ _Py_RecursionLimit_GetMargin(PyThreadState *tstate)
328
329
// splitmix64 from https://prng.di.unimi.it/splitmix64.c
330
uint64_t z = (tstate->prng += 0x9e3779b97f4a7c15);
331
- z = (z ^ (z >> 30)) * 0xbf58476d1ce4e5b9;
332
- z = (z ^ (z >> 27)) * 0x94d049bb133111eb;
333
- uint64_t r = z ^ (z >> 31);
+ z = (z ^ (z >> 30)) * 0xbf58476d1ce4e5b9;
+ z = (z ^ (z >> 27)) * 0x94d049bb133111eb;
+ uint64_t r = z ^ (z >> 31);
334
if ((r & 0xFF) < 2) { // 2/256 chance = ~ 0.8% chance
335
return 1;
336
}
0 commit comments