Skip to content

Commit b75d73a

Browse files
committed
test reset
1 parent 80574f5 commit b75d73a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/_xxhash.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ static PyObject *PYXXH3_64_new(PyTypeObject *type, PyObject *args, PyObject *kwa
10381038
if ((self->xxhash_state = XXH3_createState()) == NULL) {
10391039
return NULL;
10401040
}
1041+
XXH3_64bits_reset_withSeed(self->xxhash_state, 0);
10411042

10421043
return (PyObject *)self;
10431044
}
@@ -1348,6 +1349,8 @@ static PyObject *PYXXH3_128_new(PyTypeObject *type, PyObject *args, PyObject *kw
13481349
return NULL;
13491350
}
13501351

1352+
XXH3_64bits_reset_withSeed(self->xxhash_state, 0);
1353+
13511354
return (PyObject *)self;
13521355
}
13531356

0 commit comments

Comments
 (0)