Skip to content

Commit 1692917

Browse files
committed
Add _Py_HashSecret definition
1 parent 5d81112 commit 1692917

File tree

1 file changed

+10
-0
lines changed
  • graalpython/com.oracle.graal.python.cext/include

1 file changed

+10
-0
lines changed

graalpython/com.oracle.graal.python.cext/include/pyhash.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ extern long _PyHASH_NAN;
5555
extern long _PyHASH_IMAG;
5656
#define _PyHASH_MULTIPLIER _PyHASH_IMAG;
5757

58+
typedef union {
59+
/* ensure 24 bytes */
60+
unsigned char uc[24];
61+
struct {
62+
unsigned char padding[16];
63+
Py_hash_t hashsalt;
64+
} expat;
65+
} _Py_HashSecret_t;
66+
PyAPI_DATA(_Py_HashSecret_t) _Py_HashSecret;
67+
5868
#ifdef __cplusplus
5969
}
6070
#endif

0 commit comments

Comments
 (0)