| 5865 | static void Hasher_dealloc(Hasher *self) { Py_TYPE(self)->tp_free((PyObject *)self); } |
| 5866 | |
| 5867 | static PyObject *Hasher_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { |
| 5868 | (void)args; |
| 5869 | (void)kwds; |
| 5870 | Hasher *self = (Hasher *)type->tp_alloc(type, 0); |
| 5871 | if (!self) return NULL; |
| 5872 | self->seed = 0; |
| 5873 | sz_hash_state_init(&self->state, self->seed); |
| 5874 | return (PyObject *)self; |
| 5875 | } |
| 5876 | |
| 5877 | static int Hasher_init(Hasher *self, PyObject *args, PyObject *kwargs) { |
| 5878 | // Positional seed |
nothing calls this directly
no test coverage detected
searching dependent graphs…