fixed memory leaks and almost all undefined behaviour

This commit is contained in:
Alex Murkoff
2024-04-13 02:24:14 +07:00
parent 592de19843
commit 1d5e9705db
10 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ static BYTE SEQ_randByte(unsigned* src)
SEQ_stream SEQ_initStream(unsigned seed)
{
SEQ_stream stream;
SEQ_stream stream = {};
stream.state = 0;
XXH64_reset(&stream.xxh, 0);
stream.seed = seed;