Skip to content

Commit 92e82ac

Browse files
colesburyAA-Turner
andauthored
Update Include/internal/pycore_pystate.h
Co-authored-by: Adam Turner <[email protected]>
1 parent 030abcd commit 92e82ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/internal/pycore_pystate.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ _Py_RecursionLimit_GetMargin(PyThreadState *tstate)
328328

329329
// splitmix64 from https://prng.di.unimi.it/splitmix64.c
330330
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);
331+
z = (z ^ (z >> 30)) * 0xbf58476d1ce4e5b9;
332+
z = (z ^ (z >> 27)) * 0x94d049bb133111eb;
333+
uint64_t r = z ^ (z >> 31);
334334
if ((r & 0xFF) < 2) { // 2/256 chance = ~ 0.8% chance
335335
return 1;
336336
}

0 commit comments

Comments
 (0)