Skip to content

Commit fd5989b

Browse files
authored
gh-108753: _Py_PrintSpecializationStats() uses Py_hexdigits (#109040)
1 parent f42edf1 commit fd5989b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/specialize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ _Py_PrintSpecializationStats(int to_file)
290290
char hex_name[41];
291291
_PyOS_URandomNonblock(rand, 20);
292292
for (int i = 0; i < 20; i++) {
293-
hex_name[2*i] = "0123456789abcdef"[rand[i]&15];
294-
hex_name[2*i+1] = "0123456789abcdef"[(rand[i]>>4)&15];
293+
hex_name[2*i] = Py_hexdigits[rand[i]&15];
294+
hex_name[2*i+1] = Py_hexdigits[(rand[i]>>4)&15];
295295
}
296296
hex_name[40] = '\0';
297297
char buf[64];

0 commit comments

Comments
 (0)